digint / btrbk

Tool for creating snapshots and remote backups of btrfs subvolumes
https://digint.ch/btrbk/
GNU General Public License v3.0
1.6k stars 117 forks source link

How to keep backups if I am away from the PC for a very long time #527

Open Zesko opened 1 year ago

Zesko commented 1 year ago

My backup strategy:

My config:

timestamp_format        long

snapshot_preserve_min   latest 
snapshot_preserve       no

volume /btrfs
  snapshot_dir  /btrfs/@snapshots/btrbk_snapshots
  target_preserve_min    30d
  target_preserve        no
  subvolume @home
     target send-receive /backup/btrbk_backup/home
  ...

The issue:

If my PC is offline for 2 months long, but all snapshots are older than 30 days and are deleted automatically when my PC is on. They would be gone. No backup.

Have you any idea how to keep 30 backups (snapshots) regardless of age?

Zesko commented 1 year ago

It relates to the issue https://github.com/digint/btrbk/issues/388