4

I configured rsnapshot so it would not backup hourly by commenting out the hourly cronjob in /etc/cron.d/rsnapshot:

#0 */4          * * *           root    /usr/bin/rsnapshot hourly
30 3    * * *           root    /usr/bin/rsnapshot daily
0  3    * * 1           root    /usr/bin/rsnapshot weekly
30 2    1 * *           root    /usr/bin/rsnapshot monthly

But this gives the error:

/.snapshots/hourly.5 not present (yet), nothing to copy

And it doesn't backup anything any more ever since.

As a workaround, I called this manually now once:

/usr/bin/rsnapshot -v hourly

But how do I configure this correctly so backups only are done once a day at 3:30 am?

1 Answer 1

4

Removing the cron job is not enough. You also have to adapt the config file to reflect the change. Remove (or uncomment) the following line from /etc/rsnapshot.conf:

retain  hourly  24

Then your backups should work again.

2
  • I have no retain, still interval, but you are right, the new name is 'retain', see sourceforge.net/p/rsnapshot/mailman/message/6585583
    – rubo77
    Oct 14, 2015 at 15:15
  • @rubo77 Then you have a really old version of rsnapshot or use are using deprecated syntax. For details about your particular version you can check the man page: man rsnapshot | less -p 'retain|interval'
    – Marco
    Oct 14, 2015 at 15:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.