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

NAME

6       restic-diff - Show differences between two snapshots
7
8
9

SYNOPSIS

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

DESCRIPTION

16       The "diff" command shows differences from the first to the second
17       snapshot. The first characters in each line display what has happened
18       to a 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

EXIT STATUS

36       Exit status is 0 if the command was successful, and non-zero if there
37       was any error.
38
39
40

OPTIONS

42       -h, --help[=false]
43           help for diff
44
45
46       --metadata[=false]
47           print changes in metadata
48
49
50

OPTIONS INHERITED FROM PARENT COMMANDS

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

SEE ALSO

131       restic(1)
132
133
134
135generated by `restic generate`     Jan 2017                   restic backup(1)
Impressum