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