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

cron - timing - interval #142

Closed
iamdevnull opened this issue Jun 1, 2016 · 2 comments
Closed

cron - timing - interval #142

iamdevnull opened this issue Jun 1, 2016 · 2 comments

Comments

@iamdevnull
Copy link

Hey guys,

i realised that if you have for example this interval scheme:

retain daily 7
retain weekly 4
retain monthly 12

and this schedule:

44 2 * * * root rsnapshot daily # mon-sat
27 0 * * 0 root rsnapshot weekly # sun
17 1 1 * * root rsnapshot monthly # first of every month

this means if i start the first week from scratch, then i would have on

saturday: daily.0 - daily.5

and on sunday i see a problem, cron would call first "rsnapshot weekly" due to the time, this will cause:

daily.6 not present (yet), nothing to copy

the result is one missing "weekly".

Can you confirm this problem ?

Regards

@iamdevnull
Copy link
Author

I would greatly appreciate it if I could have an answer to my question.

Regards

@sgpinkus
Copy link
Member

sgpinkus commented Jul 5, 2016

If you want to ask a question or have a general discussion use the Mailing List

Conceptually each retain defines a FIFO of strictly fixed length. Each item in the queue is labelled <retain-name>.<index>. All rsnapshot <retain-name> does is rotate the queues. Given:

retain level0 X
retain level1 Y

in general you have to ensure level0 is called >= X times, between level1 calls., otherwise you'll get "not present (yet), nothing to copy.", which isn't a huge deal normally.

@sgpinkus sgpinkus closed this as completed Jul 5, 2016
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