Hello! I am trying to backup my laptop to my server on my private network and I have a few problems.... Here's my configuration:
I have Slackware 12.2 on both machines, with ssh on both, and rsnapshot, fuse, and sshfs on my laptop.
My strategy is very simple:
1-I created a crontab (root) to automate the operations;
2-Crontab call the /usr/bin/rsnapshot script with "weekly" argument;
3-rsnapsnot script includes both pre_exec and post_exec commands.
Pre_exec is a script in /usr/bin/ and it's purpose is to simply mount a remote filesystem (on my server) to a local mountpoint (on my laptop, in a different partition than the snapshot). Here's the content of my preexec script:
Code:
sshfs username@AAA.BBB.DDD.DDD:/mnt/storage /mnt/storage/backup
And it works perfectly....
Post_exec is also a script in /usr/bin/ and it's purpose is to simply un-mount the remote filesystem from the local mountpoint. Here's the content of my postexec script:
Code:
fusermount -u /mnt/storage/backup
And it also works perfectly....
Of course, the problem is in between, with the rsnapshot script. I experience various problems and here's some of them (what I get in terminal):
rsync: failed to set times on "/mnt/storage/backup/weekly.0/localhost/home/username/.DCOPserver_laptop_:0": No such file or directory(2)
rsync: failed to set times on "/mnt/storage/backup/weekly.0/localhost/home/username/.googleearth/instance-running-lock": No such file or directory (2)
rsync: writefd_unbuffered failed to write 4 bytes [sender]: Broken pipe (32)
rsync: connection unexpectedly closed (1389 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(632) [sender=3.0.4]
----------------------------------------------------------------------------
rsnapshot encountered an error! The program was invoked with these options:
/usr/bin/rsnapshot weekly
----------------------------------------------------------------------------
ERROR: /usr/bin/rsync returned 12 while processing /home/
Whats wrong???? I am confused!!
Thanks for any feedback!!
I forgot to explain my motivation behind this:
No need to explain why I want to backup my laptop, but the thing is, I haven't found any websites/references that explains how to push your backup TO a server, or a network shared folder.... rsnapshot seems to be very good to backup remote machines TO the local machine, but the opposite doesn't seems so obvious. I dont want to backup my server into my laptop, but the opposite. yes I could have done the same stuff on my server so rsnapshot remotely backup my laptop to my server, but I dont use/care as much about my server, and I dont like to depend on a remote machine to auto-backup my laptop. Plus, my server is in the basement... Obviously, I can backup my data on the first laptop HDD to the second HDD, but what is the point? Also, I could use a USB HDD to store the snapshot, but I would require at least a 500GB USB HDD and I prefer to use my gigabit network with my 4TB of storage space in my server... Any improvements/ideas/comments are more than welcome!!