1restic backup(1) restic backup(1)
2
3
4
6 restic-diff - Show differences between two snapshots
7
8
9
11 restic diff [flags] snapshotID snapshotID
12
13
14
16 The "diff" command shows differences from the first to the second snap‐
17 shot. The first characters in each line display what has happened to a
18 particular file or directory:
19
20
21 • + The item was added
22
23 • - The item was removed
24
25 • U The metadata (access mode, timestamps, ...) for the item
26 was updated
27
28 • M The file's content was modified
29
30 • T The type was changed, e.g. a file was made a symlink
31
32
33
34 To only compare files in specific subfolders, you can use the ":" syn‐
35 tax, where "subfolder" is a path within the snapshot.
36
37
38
40 Exit status is 0 if the command was successful, and non-zero if there
41 was any error.
42
43
44
46 -h, --help[=false] help for diff
47
48
49 --metadata[=false] print changes in metadata
50
51
52
54 --cacert=[] file to load root certificates from (default: use sys‐
55 tem certificates or $RESTIC_CACERT)
56
57
58 --cache-dir="" set the cache directory. (default: use system de‐
59 fault cache directory)
60
61
62 --cleanup-cache[=false] auto remove old cache directories
63
64
65 --compression=auto compression mode (only available for repository
66 format version 2), one of (auto|off|max) (default: $RESTIC_COMPRESSION)
67
68
69 --insecure-tls[=false] skip TLS certificate verification when con‐
70 necting to the repository (insecure)
71
72
73 --json[=false] set output mode to JSON for commands that support
74 it
75
76
77 --key-hint="" key ID of key to try decrypting first (default:
78 $RESTIC_KEY_HINT)
79
80
81 --limit-download=0 limits downloads to a maximum rate in KiB/s.
82 (default: unlimited)
83
84
85 --limit-upload=0 limits uploads to a maximum rate in KiB/s. (de‐
86 fault: unlimited)
87
88
89 --no-cache[=false] do not use a local cache
90
91
92 --no-lock[=false] do not lock the repository, this allows some op‐
93 erations on read-only repositories
94
95
96 -o, --option=[] set extended option (key=value, can be specified
97 multiple times)
98
99
100 --pack-size=0 set target pack size in MiB, created pack files may
101 be larger (default: $RESTIC_PACK_SIZE)
102
103
104 --password-command="" shell command to obtain the repository pass‐
105 word from (default: $RESTIC_PASSWORD_COMMAND)
106
107
108 -p, --password-file="" file to read the repository password from
109 (default: $RESTIC_PASSWORD_FILE)
110
111
112 -q, --quiet[=false] do not output comprehensive progress report
113
114
115 -r, --repo="" repository to backup to or restore from (default:
116 $RESTIC_REPOSITORY)
117
118
119 --repository-file="" file to read the repository location from
120 (default: $RESTIC_REPOSITORY_FILE)
121
122
123 --retry-lock=0s retry to lock the repository if it is already
124 locked, takes a value like 5m or 2h (default: no retries)
125
126
127 --tls-client-cert="" path to a file containing PEM encoded TLS
128 client certificate and private key (default: $RESTIC_TLS_CLIENT_CERT)
129
130
131 -v, --verbose[=0] be verbose (specify multiple times or a level
132 using --verbose=n``, max level/times is 2)
133
134
135
137 restic(1)
138
139
140
141generated by restic generate Jan 2017 restic backup(1)