What's Changed
- Added support for grouping snapshots by host, path, tag (#12)
- Added support for filtering snapshots by host,path, tag (#12)
- Default snapshot grouping set to host, path.
Full Changelog: https://github.com/shd2h/restic-replica/commits/v0.2.0
Details
Previously there was no grouping, which meant a repository with more than one backup host, or path, was not really supported well. The new default grouping choice mimics the default restic forget behaviour, and is less likely to cause unexpected surprises when copying; policies are now applied to each group individually.
The new sections (grouping, filters) in the config file are optional. Existing config files are still fully supported, but the new default grouping will take effect.
The new grouping or filters sections can be added manually (see example_config.toml). Alternatively, moving the existing config file aside will cause restic-replica to generate a new file on next run, which will contain the new sections.
If your workflow depends on not grouping the snapshots (i.e., applying the policy to all snapshots regardless of host, path or tag), snapshot grouping can be disabled by setting the options under the grouping section to false. This will cause a return to the pre-0.2.0 behaviour.