2022-12-10 15:02:29 +00:00
|
|
|
Enhancement: Support `--group-by` for backup parent selection
|
|
|
|
|
2023-07-29 00:30:40 +00:00
|
|
|
Previously, the `backup` command by default selected the parent snapshot based
|
2024-07-24 17:40:53 +00:00
|
|
|
on the hostname and the backup paths. When the backup path list changed, the
|
2023-07-29 00:30:40 +00:00
|
|
|
`backup` command was unable to determine a suitable parent snapshot and had to
|
|
|
|
read all files again.
|
2022-12-10 15:02:29 +00:00
|
|
|
|
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.
|
2023-07-29 00:30:40 +00:00
|
|
|
|
|
|
|
The new `--group-by` option should be set to the same value as passed to
|
2023-07-27 19:52:04 +00:00
|
|
|
`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
|