digint / digint/btrbk

Multiple targets with different target_preserve options

Open
#262 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Perl
Stars
2.1k
Forks
139
PR merge metrics
No merged PRs in 30d

Description

What is the proper way to set multiple targets (for the same subvolume) that have different values for target_preserve? I would like to set a longer retention policy on the second target (backup2). Would you place a target_preserve option in front of each target declaration (like the below)? Is this even possible with Btrbk?

```
volume /mnt/raid
subvolume root
snapshot_dir snapshots
snapshot_create always
timestamp_format long
snapshot_preserve_min latest
snapshot_preserve 7d 4w
target_preserve_min latest

target_preserve 7d 4w
target send-receive /mnt/backup1/snapshots
target_preserve 7d 4w 12m 1y
target send-receive /mnt/backup2/snapshots

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.