1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-23 00:07:25 +00:00
restic/changelog/unreleased/issue-3941

17 lines
798 B
Text
Raw Normal View History

2022-12-10 15:02:29 +00:00
Enhancement: Support `--group-by` for backup parent selection
2023-07-27 19:52:04 +00:00
The `backup` command by default selected the parent snapshot based on the hostname
and the backup targets. When the backup path list changed, the `backup` command
2022-12-10 15:02:29 +00:00
was unable to determine a suitable parent snapshot and had to read all
files again.
2023-07-27 19:52:04 +00:00
The new `--group-by` option for the `backup` command allows filtering snapshots
2022-12-10 15:02:29 +00:00
for the parent selection by `host`, `paths` and `tags`. It defaults to
`host,paths` which selects the latest snapshot with hostname and paths matching
2023-07-27 19:52:04 +00:00
those of the backup run. This matches the behavior of prior restic versions.
The `--group-by` option should be set to the same value as passed to
`forget --group-by`.
2022-12-10 15:02:29 +00:00
https://github.com/restic/restic/issues/3941
https://github.com/restic/restic/pull/4081