restic/changelog/0.16.0_2023-07-31/issue-3871

23 lines
1.0 KiB
Plaintext
Raw Normal View History

2023-07-16 14:28:54 +00:00
Enhancement: Support `<snapshot>:<subfolder>` syntax to select subfolders
Commands like `diff` or `restore` always worked with the full snapshot. This
did not allow comparing only a specific subfolder or only restoring that folder
2023-07-27 19:52:04 +00:00
(`restore --include subfolder` filters the restored files, but still creates the
2023-07-16 14:28:54 +00:00
directories included in `subfolder`).
2023-07-27 19:52:04 +00:00
The commands `diff`, `dump`, `ls` and `restore` now support the
`<snapshot>:<subfolder>` syntax, where `snapshot` is the ID of a snapshot (or
2023-07-16 19:43:56 +00:00
the string `latest`) and `subfolder` is a path within the snapshot. The
commands will then only work with the specified path of the snapshot. The
2023-07-29 00:30:40 +00:00
`subfolder` must be a path to a folder as returned by `ls`. Two examples:
2023-07-16 14:28:54 +00:00
`restic restore -t target latest:/some/path`
`restic diff 12345678:/some/path 90abcef:/some/path`
For debugging purposes, the `cat` command now supports `cat tree
<snapshot>:<subfolder>` to return the directory metadata for the given
subfolder.
https://github.com/restic/restic/issues/3871
https://github.com/restic/restic/pull/4334