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 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

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]      help for diff
43
44
45       --metadata[=false]      print changes in metadata
46
47
48

OPTIONS INHERITED FROM PARENT COMMANDS

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

SEE ALSO

129       restic(1)
130
131
132
133generated by restic generate       Jan 2017                   restic backup(1)
Impressum