@@ -185,8 +185,10 @@ total: 3 snapshot(s)
185185```
186186
187187Interestingly, the new snapshots replaced the old ones but were not tagged. The
188- options ` --forget ` and ` --tags-rewritten '' ` prevent the command from adding the
189- ` rewrite ` tag.
188+ option ` --forget ` prevent the command from adding the ` rewrite ` tag. To be more
189+ precise, there is the option ` --tags-rewritten ` which specifies which tags to
190+ add to rewritten snapshots. It defaults to ` rewrite ` if no ` --forget ` is given
191+ and to ` '' ` (i.e. no tag) if ` --forget ` is used.
190192
191193### The very short way
192194
@@ -240,10 +242,12 @@ with the data packs. It has two consequences:
240242
241243## Rewriting tags
242244
243- The ` rustic rewrite ` command allows you to manipulate the snapshots' tags.
245+ The ` rustic rewrite ` command also allows you to manipulate the snapshots' tags.
246+ Note that there is the special ` rustic tag ` command which only allows to modify
247+ tags, this is basically a shortcut for the respective options of
248+ ` rustic rewrite --force ` .
244249
245- For example, you can use ` rewrite --set-tags ... ` to set a new tag list to a
246- snapshot:
250+ You can use ` rewrite --set-tags ... ` to set a new tag list to a snapshot:
247251
248252``` console
249253$ rustic snapshots --all --filter-paths Project
@@ -307,9 +311,6 @@ snapshots for (host [kasimir], label [], paths [Project])
307311total: 2 snapshot(s)
308312```
309313
310- ** Note:** ` rustic tag --remove ... ` is an alias for
311- ` rustic rewrite --forget --remove-tags ... `
312-
313314``` console
314315# Replace the tag list
315316$ rustic rewrite --forget --set-tags origin 3f1560c5
0 commit comments