[opensuse] Lazy rsnapshot
Hi listmates, I'm having a problem getting rsnapshot to do anything (running openSUSE 10.3). It runs and all that, but it fails to actually copy something to the destination. From what I can tell, I have configured everything the correct way and the command "rsnapshot configtest" also mentions all syntax is okay, although it does complain about a missing Lchown. I have tried to find Lchown, but rpm tells me that no package provides Lchown. It's also not in the repositories, AFAICT. When I issue the command to do perform a test backup, all I get is: echo 28716 > /var/run/rsnapshot.pid When I issue the command to do a full backup, I get this: require Lchown Lchown module not found Setting locale to POSIX "C" echo 28718 > /var/run/rsnapshot.pid rm -f /var/run/rsnapshot.pid The logfile says this: [27/Aug/2008:09:10:22] require Lchown [27/Aug/2008:09:10:22] Lchown module not found [27/Aug/2008:09:10:22] /usr/bin/rsnapshot daily: started [27/Aug/2008:09:10:22] Setting locale to POSIX "C" [27/Aug/2008:09:10:22] echo 28718 > /var/run/rsnapshot.pid [27/Aug/2008:09:10:22] rm -f /var/run/rsnapshot.pid [27/Aug/2008:09:10:22] /usr/bin/rsnapshot daily: completed successfully That's a nice and fast backup, but a bit...empty. :-) Here is my /etc/rsnapshot.conf (comments stripped) config_version 1.2 snapshot_root /mnt/backup/ no_create_root 1 cmd_cp /bin/cp cmd_rm /bin/rm cmd_rsync /usr/bin/rsync cmd_ssh /usr/bin/ssh cmd_du /usr/bin/du cmd_rsnapshot_diff /usr/bin/rsnapshot-diff cmd_preexec /etc/rsnapshotprescript <-- script mounts ext. USB cmd_postexec /etc/rsnapshotpostscript <-- script unmounts ext. USB interval daily 7 interval weekly 4 verbose 5 loglevel 5 logfile /var/log/rsnapshot lockfile /var/run/rsnapshot.pid exclude .thumbnails/ exclude tmp/ exclude wget/ exclude *Trash* link_dest 1 sync_first 1 use_lazy_deletes 1 backup /home/joop/ magrathea/ backup /etc/ magrathea/ The pre and post scripts mount and unmount the external USB drive. When I run them separately, on the command line, they work so I don't believe they are the problem. I have turned on debug logging, but that doesn't tell me more than what I have shown you above. So, what do I need to do to get rsnapshot to actually get busy? Thanks for any help, Joop ------------------------------------------------------------ Dit bericht is gescand op virussen en andere gevaarlijke inhoud door MailScanner en lijkt schoon te zijn. Mailscanner door http://www.prosolit.nl Professional Solutions fot IT -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi,
When I issue the command to do a full backup, I get this: require Lchown Lchown module not found
The logfile says this: [27/Aug/2008:09:10:22] require Lchown [27/Aug/2008:09:10:22] Lchown module not found
So, what do I need to do to get rsnapshot to actually get busy? Install Lchown?
I don't use rsnapshot, but dirvish, and never had this problem with it. Works perfectly. I know we talked about Lchown before on this list: http://linux.derkeiler.com/Mailing-Lists/SuSE/2008-01/msg03004.html mj -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 27 August 2008 10:38:25 am you wrote:
Install Lchown?
Okay, thanks for the tip. I have installed the Lchown module through cpan, however, rsnapshot still refuses to do something. It now logs this: [27/Aug/2008:11:38:32] require Lchown [27/Aug/2008:11:38:32] Lchown module loaded successfully [27/Aug/2008:11:38:32] /usr/bin/rsnapshot daily: started [27/Aug/2008:11:38:32] Setting locale to POSIX "C" [27/Aug/2008:11:38:32] echo 32662 > /var/run/rsnapshot.pid [27/Aug/2008:11:38:32] rm -f /var/run/rsnapshot.pid [27/Aug/2008:11:38:32] /usr/bin/rsnapshot daily: completed successfully As you can see, it now finds Lchown. Any thoughts? Thanks, Joop ------------------------------------------------------------ Dit bericht is gescand op virussen en andere gevaarlijke inhoud door MailScanner en lijkt schoon te zijn. Mailscanner door http://www.prosolit.nl Professional Solutions fot IT -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
As you can see, it now finds Lchown.
Any thoughts? Not here, I hope someone else does. I use dirvish, and never used rsnapshot.
If I understand correctly, you use a USB-drive. Maybe you can check if mounting is done by observing messages-log: tail -f /var/log/messages If not, something's wrong with your pre/post-scripts
Goodluck. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- L. de Braal BraHa Systems NL - Terneuzen T +31 115 649333 F +31 115 649444 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 27 August 2008, Leen de Braal wrote:
If I understand correctly, you use a USB-drive. Maybe you can check if mounting is done by observing messages-log:
tail -f /var/log/messages
If not, something's wrong with your pre/post-scripts
Hi Leen, Thanks for thinking along. Yes, I am using a USB drive. Nothing about mounting is logged in /var/log/messages. However, the pre- and postscripts are working fine. When I just run them on the command line, the drive gets mounted. (Again, no logging in /var/log/messages). The mount command shows the drive is mounted as /mnt/backup, just like the script says it should be. However, if I mount the drive manually and comment out the prescript line in rsnapshot.conf, it still fails to launch... And I'd expect rsnapshot with debug logging enabled to complain about problems with the script. I don't even think it gets to my script...it seems to write it's lockfile, remove it again, and that's it. No idea why. Thanks, Joop
mourik jan c heupink wrote:
I don't use rsnapshot, but dirvish, and never had this problem with it. Works perfectly.
Looks like dirvish died in 2006. http://www.dirvish.org/ -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 27 August 2008 09:41:50 am Joop Beris wrote:
I'm having a problem getting rsnapshot to do anything (running openSUSE 10.3). It runs and all that, but it fails to actually copy something to the destination. From what I can tell, I have configured everything the correct way and the command "rsnapshot configtest" also mentions all syntax is okay, although it does complain about a missing Lchown. I have tried to find Lchown, but rpm tells me that no package provides Lchown. It's also not in the repositories, AFAICT.
When I issue the command to do perform a test backup, all I get is: echo 28716 > /var/run/rsnapshot.pid
When I issue the command to do a full backup, I get this: require Lchown Lchown module not found Setting locale to POSIX "C" echo 28718 > /var/run/rsnapshot.pid rm -f /var/run/rsnapshot.pid
The logfile says this: [27/Aug/2008:09:10:22] require Lchown [27/Aug/2008:09:10:22] Lchown module not found [27/Aug/2008:09:10:22] /usr/bin/rsnapshot daily: started [27/Aug/2008:09:10:22] Setting locale to POSIX "C" [27/Aug/2008:09:10:22] echo 28718 > /var/run/rsnapshot.pid [27/Aug/2008:09:10:22] rm -f /var/run/rsnapshot.pid [27/Aug/2008:09:10:22] /usr/bin/rsnapshot daily: completed successfully
That's a nice and fast backup, but a bit...empty. :-)
Here is my /etc/rsnapshot.conf (comments stripped)
config_version 1.2 snapshot_root /mnt/backup/ no_create_root 1 cmd_cp /bin/cp cmd_rm /bin/rm cmd_rsync /usr/bin/rsync cmd_ssh /usr/bin/ssh cmd_du /usr/bin/du cmd_rsnapshot_diff /usr/bin/rsnapshot-diff cmd_preexec /etc/rsnapshotprescript <-- script mounts ext. USB cmd_postexec /etc/rsnapshotpostscript <-- script unmounts ext. USB interval daily 7 interval weekly 4 verbose 5 loglevel 5 logfile /var/log/rsnapshot lockfile /var/run/rsnapshot.pid exclude .thumbnails/ exclude tmp/ exclude wget/ exclude *Trash* link_dest 1 sync_first 1 use_lazy_deletes 1 backup /home/joop/ magrathea/ backup /etc/ magrathea/
The pre and post scripts mount and unmount the external USB drive. When I run them separately, on the command line, they work so I don't believe they are the problem. I have turned on debug logging, but that doesn't tell me more than what I have shown you above.
Hello listmates, I'm sorry to resurrect such an old thread, but I finally found out why I couldn't get rsnapshot to get busy and do something. As you can read above, rsnapshot didn't actually back up, even after I installed Lchown on the machine in question. Apparently, the thing that caused rsnapshot not to make a snapshot, was the option "sync_first" which in the example config file is set to "1". The config file mentions that setting it to enabled, causes rsnapshot to behave differently. When I disabled this option, then ran rsnapshot again, suddenly it did start to backup. The bottom of the man page actually specifies that if you run rsnapshot with the option "sync_first" enabled, you need to tell it to sync first, before running the actual backup. I am doing that now, and apparently rsnapshot is doing its job now. So it turned out to be a matter of rtfm a bit better. I decided to post it here, just in case someone runs into this problem in the future. Regards, Joop ------------------------------------------------------------ Dit bericht is gescand op virussen en andere gevaarlijke inhoud door MailScanner en lijkt schoon te zijn. Mailscanner door http://www.prosolit.nl Professional Solutions fot IT -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
David C. Rankin
-
Joop Beris
-
Joop Beris
-
Leen de Braal
-
mourik jan c heupink