restic/changelog/unreleased/issue-3941

17 lines
798 B
Plaintext
Raw Normal View History

2022-12-10 16:02:29 +01:00
Enhancement: Support `--group-by` for backup parent selection
2023-07-27 21:52:04 +02: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 16:02:29 +01:00
was unable to determine a suitable parent snapshot and had to read all
files again.
2023-07-27 21:52:04 +02:00
The new `--group-by` option for the `backup` command allows filtering snapshots
2022-12-10 16:02:29 +01: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 21:52:04 +02: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 16:02:29 +01:00
https://github.com/restic/restic/issues/3941
https://github.com/restic/restic/pull/4081