Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-16-2012, 05:07 AM   #1
LQ Newbie
Registered: Sep 2007
Posts: 13

Rep: Reputation: 1
rsnapshot - missing last month on a 3-month cycle. Fedora 15

My rsnapshot seems to be running perfectly except that I am a monthly backup too few.
There is no shortage of disk space and I have been running it for long enough to have three monthly backups. I would appreciate any ideas as to why my oldest month is not being retained.

Many thanks in advance.

/etc/crontab contains
00 */4 * *  * root       /usr/bin/rsnapshot hourly
10 4  *  *  * root       /usr/bin/rsnapshot daily
20 4  *  *  1 root       /usr/bin/rsnapshot weekly
30 4  1  *  * root       /usr/bin/rsnapshot monthly
/etc/rsnapshot.conf contains
interval        hourly  6
interval        daily   7
interval        weekly  4
interval        monthly 3
destination directory contains
daily.0  daily.5   hourly.3   weekly.0
daily.1  daily.6   hourly.4   weekly.1
daily.2  hourly.0  hourly.5   weekly.2
daily.3  hourly.1  monthly.0  weekly.3
daily.4  hourly.2  monthly.1
/var/log/rsnapshot contains
[01/Feb/2012:04:30:01] mv /mnt/volume12/snapshots/monthly.0/ /mnt/volume12/snapshots/monthly.1/
[01/Feb/2012:04:30:01] mv /mnt/volume12/snapshots/weekly.3/ /mnt/volume12/snapshots/monthly.0/
rsnapshot configtest returns
Syntax OK
rsnapshot -t monthly-t monthly returns
echo 13561 > /var/run/ 
mv /mnt/volume12/snapshots/monthly.1/ /mnt/volume12/snapshots/monthly.2/ 
mv /mnt/volume12/snapshots/monthly.0/ /mnt/volume12/snapshots/monthly.1/ 
mv /mnt/volume12/snapshots/weekly.3/ /mnt/volume12/snapshots/monthly.0/
/var/log/messages contains
Feb  1 04:30:01 orion rsnapshot[6892]: /usr/bin/rsnapshot monthly: completed successfully

Last edited by steve_s; 02-16-2012 at 05:14 AM. Reason: extra info
Old 02-16-2012, 10:43 PM   #2
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,940

Rep: Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210
File in use by the first "mv". Second mv gets skipped, ...
Old 02-17-2012, 05:51 AM   #3
LQ Newbie
Registered: Sep 2007
Posts: 13

Original Poster
Rep: Reputation: 1
I have seen my error: rsnapshot was as comatose as I was at 0430 on January 01. No monthly backup took place, so nothing missing.
I did an out of cycle rsnapshot monthly, and monthly.2 was created nicely.
I have reordered my cron timings to prevent hourly from running into daily, but there had been no collisions anyway.
00 */4 * *  * root       /usr/bin/rsnapshot hourly
50 3  *  *  * root       /usr/bin/rsnapshot daily
40 3  *  *  1 root       /usr/bin/rsnapshot weekly
30 3  1  *  * root       /usr/bin/rsnapshot monthly
One mystery remains to me however; monthly, weekly, daily and hourly rsnapshot operations all begin and end like,
mv /mnt/volume12/snapshots/hourly.5/ /mnt/volume12/snapshots/_delete.nnnn/
/bin/rm -rf /mnt/volume12/snapshots/_delete.nnnn
and according to /var/log/rsnapshot this has happens every time, except that every single day, 0800 rsnapshot hourly misses out the hourly.5 to _delete.nnnn stage.
I see nothing special about 0800. It seems a it may only cause a minor issue if I ever have to recover from a system crash at 0801.
But what the heck is it about? My original problem is solved (thanks syg00), but if anyone has a thought about this I would welcome it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: CodeWeavers CEO names himself employee of the month for 175TH consecutive month LXer Syndicated Linux News 3 08-13-2010 05:55 PM
Does Fedora 8 download 28 GB of updates in a month !!!? koolkarthikeyan Fedora 13 07-24-2009 03:47 AM
transform month number to month name in php ALInux Programming 1 11-09-2005 11:45 AM
Webalizer - month missing jjdoll42 Linux - Software 0 04-13-2005 12:54 PM
Starting day of month, month length chrisk5527 Programming 2 03-03-2004 05:03 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration