btrfs-snap
btrfs-snap copied to clipboard
Weekly and Daily
Hello,
I would like to have weekly, daily and monthly snapshots. Is that possible in one command (I think not) or at least in one crontab-entry?
I am going to create one script that does iterate through all folders I intend to backup and I wonder, if I need to create three scripts, or whether I can go with one.
Greetings, Hendrik
I would like to have weekly, daily and monthly snapshots. Is that possible in one command (I think not) or at least in one crontab-entry?
You'd need a command each, e.g.:
@daily /path/to/btrfs-snap -q /path/to/subvol daily 7
@weekly /path/to/btrfs-snap -q /path/to/subvol weekly 4
@monthly /path/to/btrfs-snap -q /path/to/subvol monthly 6
I am going to create one script that does iterate through all folders I intend to backup and I wonder, if I need to create three scripts, or whether I can go with one.
Well your supplementary scripts are probably nothing to discuss here.