1restic backup(1) restic backup(1)
2
3
4
6 restic-tag - Modify tags on snapshots
7
8
9
11 restic tag [flags] [snapshot-ID ...]
12
13
14
16 The "tag" command allows you to modify tags on exiting snapshots.
17
18
19 You can either set/replace the entire set of tags on a snapshot, or add
20 tags to/remove tags from the existing set.
21
22
23 When no snapshot-ID is given, all snapshots matching the host, tag and
24 path filter criteria are modified.
25
26
27
29 Exit status is 0 if the command was successful, and non-zero if there
30 was any error.
31
32
33
35 --add=[]
36 tags which will be added to the existing tags in the format
37 tag[,tag,...] (can be given multiple times)
38
39
40 -h, --help[=false]
41 help for tag
42
43
44 -H, --host=[]
45 only consider snapshots for this host, when no snapshot ID is given
46 (can be specified multiple times)
47
48
49 --path=[]
50 only consider snapshots which include this (absolute) path, when no
51 snapshot-ID is given
52
53
54 --remove=[]
55 tags which will be removed from the existing tags in the format
56 tag[,tag,...] (can be given multiple times)
57
58
59 --set=[]
60 tags which will replace the existing tags in the format
61 tag[,tag,...] (can be given multiple times)
62
63
64 --tag=[]
65 only consider snapshots which include this taglist, when no
66 snapshot-ID is given
67
68
69
71 --cacert=[]
72 file to load root certificates from (default: use system
73 certificates)
74
75
76 --cache-dir=""
77 set the cache directory. (default: use system default cache
78 directory)
79
80
81 --cleanup-cache[=false]
82 auto remove old cache directories
83
84
85 --json[=false]
86 set output mode to JSON for commands that support it
87
88
89 --key-hint=""
90 key ID of key to try decrypting first (default: $RESTIC_KEY_HINT)
91
92
93 --limit-download=0
94 limits downloads to a maximum rate in KiB/s. (default: unlimited)
95
96
97 --limit-upload=0
98 limits uploads to a maximum rate in KiB/s. (default: unlimited)
99
100
101 --no-cache[=false]
102 do not use a local cache
103
104
105 --no-lock[=false]
106 do not lock the repository, this allows some operations on
107 read-only repositories
108
109
110 -o, --option=[]
111 set extended option (key=value, can be specified multiple times)
112
113
114 --password-command=""
115 shell command to obtain the repository password from (default:
116 $RESTIC_PASSWORD_COMMAND)
117
118
119 -p, --password-file=""
120 file to read the repository password from (default:
121 $RESTIC_PASSWORD_FILE)
122
123
124 -q, --quiet[=false]
125 do not output comprehensive progress report
126
127
128 -r, --repo=""
129 repository to backup to or restore from (default:
130 $RESTIC_REPOSITORY)
131
132
133 --repository-file=""
134 file to read the repository location from (default:
135 $RESTIC_REPOSITORY_FILE)
136
137
138 --tls-client-cert=""
139 path to a file containing PEM encoded TLS client certificate and
140 private key
141
142
143 -v, --verbose[=0]
144 be verbose (specify multiple times or a level using --verbose=n,
145 max level/times is 3)
146
147
148
150 restic(1)
151
152
153
154generated by `restic generate` Jan 2017 restic backup(1)