youdigit
April 15th, 2010, 03:44 AM
I'm hoping somebody can find something here that I haven't.
I'm trying to use rsync to backup home directories to a nas. First, I NFS mounted the nas and ran an rsync and everything worked out fine... the transfer completed after a few hours and everyting was transferred (lots of stuff!). I then decided that I don't want to leave the nas mounted all the time and I didn't want to automate mounting and unmounting of the nas as I didn't think I could produce a script that would work reliably enough. So I decided to start an rsync daemon on the nas and upgrade via that. I run the following command (results are included... the ^C is me killing it after it hangs).
ryan@server:/etc/backup$ sudo rsync -ax --stats --progress --delete /data root@192.168.0.98:backups1
root@192.168.0.98's password:
sending incremental file list
data/home/user/Documents/
data/home/user/Documents/The File.wmv
2228224 6% 2.05MB/s 0:00:16 ^C
rsync error: unexplained error (code 130) at rsync.c(544) [sender=3.0.6]Before it started hanging on this line, it was transferring updated files for a good while. Now it essentially stops as soon as it starts, always ending when "The File.wmv" (~32MB) is between 6 and 9%. I've checked the permissions/owners/groups on both ends and it is consistent with all the other files that have already been transferred.
I also checked the dmesg on the nas and after the transfer becomes inactive for awhile, the hard drive goes to sleep.
I've tried changing the --delete option to --delete-delay which made no difference. When I tried --delete-after I got the following:
ryan@server:/etc/backup$ sudo rsync -ax --stats --progress --verbose --delete-after /data root@192.168.0.98:backups1
root@192.168.0.98's password:
building file list ...
rsync: readlink_stat("/data/home/ryan/.gvfs") failed: Permission denied (13)
71060 files to consider
data/home/user/Documents/
data/home/user/Documents/The File.wmv
2850816 7% 2.69MB/s 0:00:12
rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)
rsync: connection unexpectedly closed (31 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]... which I don't understand and haven't found a solution for. So if anybody can shed some light on how to fix this problem I would greatly appreciate it! I'm running a fully updated v9.10.
Thanks!
I'm trying to use rsync to backup home directories to a nas. First, I NFS mounted the nas and ran an rsync and everything worked out fine... the transfer completed after a few hours and everyting was transferred (lots of stuff!). I then decided that I don't want to leave the nas mounted all the time and I didn't want to automate mounting and unmounting of the nas as I didn't think I could produce a script that would work reliably enough. So I decided to start an rsync daemon on the nas and upgrade via that. I run the following command (results are included... the ^C is me killing it after it hangs).
ryan@server:/etc/backup$ sudo rsync -ax --stats --progress --delete /data root@192.168.0.98:backups1
root@192.168.0.98's password:
sending incremental file list
data/home/user/Documents/
data/home/user/Documents/The File.wmv
2228224 6% 2.05MB/s 0:00:16 ^C
rsync error: unexplained error (code 130) at rsync.c(544) [sender=3.0.6]Before it started hanging on this line, it was transferring updated files for a good while. Now it essentially stops as soon as it starts, always ending when "The File.wmv" (~32MB) is between 6 and 9%. I've checked the permissions/owners/groups on both ends and it is consistent with all the other files that have already been transferred.
I also checked the dmesg on the nas and after the transfer becomes inactive for awhile, the hard drive goes to sleep.
I've tried changing the --delete option to --delete-delay which made no difference. When I tried --delete-after I got the following:
ryan@server:/etc/backup$ sudo rsync -ax --stats --progress --verbose --delete-after /data root@192.168.0.98:backups1
root@192.168.0.98's password:
building file list ...
rsync: readlink_stat("/data/home/ryan/.gvfs") failed: Permission denied (13)
71060 files to consider
data/home/user/Documents/
data/home/user/Documents/The File.wmv
2850816 7% 2.69MB/s 0:00:12
rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)
rsync: connection unexpectedly closed (31 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]... which I don't understand and haven't found a solution for. So if anybody can shed some light on how to fix this problem I would greatly appreciate it! I'm running a fully updated v9.10.
Thanks!