1restic backup(1)                                              restic backup(1)
2
3
4

NAME

6       restic-stats - Scan the repository and show basic statistics
7
8
9

SYNOPSIS

11       restic stats [flags] [snapshot-ID]
12
13
14

DESCRIPTION

16       The "stats" command walks one or all snapshots in a repository and
17       accumulates statistics about the data stored therein. It reports on the
18       number of unique files and their sizes, according to one of the
19       counting modes as given by the --mode flag.
20
21
22       If no snapshot is specified, all snapshots will be considered. Some
23       modes make more sense over just a single snapshot, while others are
24       useful across all snapshots, depending on what you are trying to
25       calculate.
26
27
28       The modes are:
29
30
31              · restore-size: (default) Counts the size of the restored files.
32
33              · files-by-contents: Counts total size of files, where a file is
34                considered unique if it has unique contents.
35
36              · raw-data: Counts the size of blobs in the repository,
37                regardless of how many files reference them.
38
39              · blobs-per-file: A combination of files-by-contents and
40                raw-data.
41
42
43
44       Refer to the online manual for more details about each mode.
45
46
47

OPTIONS

49       -h, --help[=false]
50           help for stats
51
52
53       -H, --host=""
54           filter latest snapshot by this hostname
55
56
57       --mode="restore-size"
58           counting mode: restore-size (default), files-by-contents,
59       blobs-per-file, or raw-data
60
61
62

OPTIONS INHERITED FROM PARENT COMMANDS

64       --cacert=[]
65           file to load root certificates from (default: use system
66       certificates)
67
68
69       --cache-dir=""
70           set the cache directory. (default: use system default cache
71       directory)
72
73
74       --cleanup-cache[=false]
75           auto remove old cache directories
76
77
78       --json[=false]
79           set output mode to JSON for commands that support it
80
81
82       --key-hint=""
83           key ID of key to try decrypting first (default: $RESTIC_KEY_HINT)
84
85
86       --limit-download=0
87           limits downloads to a maximum rate in KiB/s. (default: unlimited)
88
89
90       --limit-upload=0
91           limits uploads to a maximum rate in KiB/s. (default: unlimited)
92
93
94       --no-cache[=false]
95           do not use a local cache
96
97
98       --no-lock[=false]
99           do not lock the repo, this allows some operations on read-only
100       repos
101
102
103       -o, --option=[]
104           set extended option (key=value, can be specified multiple times)
105
106
107       --password-command=""
108           specify a shell command to obtain a password (default:
109       $RESTIC_PASSWORD_COMMAND)
110
111
112       -p, --password-file=""
113           read the repository password from a file (default:
114       $RESTIC_PASSWORD_FILE)
115
116
117       -q, --quiet[=false]
118           do not output comprehensive progress report
119
120
121       -r, --repo=""
122           repository to backup to or restore from (default:
123       $RESTIC_REPOSITORY)
124
125
126       --tls-client-cert=""
127           path to a file containing PEM encoded TLS client certificate and
128       private key
129
130
131       -v, --verbose[=0]
132           be verbose (specify --verbose multiple times or level n)
133
134
135

SEE ALSO

137       restic(1)
138
139
140
141generated by `restic generate`     Jan 2017                   restic backup(1)
Impressum