btrfs-snap icon indicating copy to clipboard operation
btrfs-snap copied to clipboard

Weekly and Daily

Open henfri opened this issue 8 years ago • 1 comments

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

henfri avatar Aug 14 '16 21:08 henfri

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.

lpirl avatar Apr 11 '20 10:04 lpirl