Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weekly and Daily #12

Open
henfri opened this issue Aug 14, 2016 · 1 comment
Open

Weekly and Daily #12

henfri opened this issue Aug 14, 2016 · 1 comment

Comments

@henfri
Copy link

henfri commented Aug 14, 2016

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

@lpirl
Copy link
Contributor

lpirl commented Apr 11, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants