Discussion:
[rsnapshot-discuss] how to use newest snapshot instead of oldest in rotation?
Mathieu Chateau
2015-07-22 21:02:48 UTC
Permalink
Hello,

When using tool to make backup, we generally want something like:
-1 backup per day (let's say 7 for 1 week)
-1 backup per month (first or last day of month, choose date)

As far as I understand, rsnapshot will rotate the oldest per day backup to
make the first per month backup. So I won't have a monthly backup that
match what was present on 1st day of the month (or whatever day I started
rsnapshot with monthly argument).

I could use 2 specific config files so they ignore each other but I won't
have benefit of hardlink between the two (and so basically host twice full
data).

Anyway to achieve that?

Thanks in advance,

Mathieu Chateau
http://www.lotp.fr
Tapani Tarvainen
2015-07-23 06:28:15 UTC
Permalink
Post by Mathieu Chateau
Hello,
-1 backup per day (let's say 7 for 1 week)
-1 backup per month (first or last day of month, choose date)
As far as I understand, rsnapshot will rotate the oldest per day backup to
make the first per month backup. So I won't have a monthly backup that
match what was present on 1st day of the month (or whatever day I started
rsnapshot with monthly argument).
Given the above schedule, you could simply run "rsnapshot monthly"
on the 7th day of the month, when the oldest daily is from the 1st.
That way your monthlies would always match the 1st day of the month.
--
Tapani Tarvainen

------------------------------------------------------------------------------
Mathieu Chateau
2015-07-25 18:20:32 UTC
Permalink
Hello,

thanks for the work around, even if I would prefer something more error
proof

Cordialement,
Mathieu CHATEAU
http://www.lotp.fr
Post by Tapani Tarvainen
Post by Mathieu Chateau
Hello,
-1 backup per day (let's say 7 for 1 week)
-1 backup per month (first or last day of month, choose date)
As far as I understand, rsnapshot will rotate the oldest per day backup
to
Post by Mathieu Chateau
make the first per month backup. So I won't have a monthly backup that
match what was present on 1st day of the month (or whatever day I started
rsnapshot with monthly argument).
Given the above schedule, you could simply run "rsnapshot monthly"
on the 7th day of the month, when the oldest daily is from the 1st.
That way your monthlies would always match the 1st day of the month.
--
Tapani Tarvainen
------------------------------------------------------------------------------
_______________________________________________
rsnapshot-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
Loading...