Task : Copy file with space from a local computer to a remote server

Copy file from ‘/home/itconsult/Maildir/.e-mail 2009-2010′ to a remote server (192.168.1.198) under the directory /home/itconsult/Maildir

/usr/bin/rsync -avHS --delete '/home/itconsult/Maildir/.e-mail 2009-2010' root@192.168.1.198:'/home/itconsult/Maildir/' > /var/log/rsynclog/itconsult 2>&1 &

Problem: If seeing the errors below in rsunc corn job, it may be caused by too many files to be synced:

rsync: writefd_unbuffered failed to write 4 bytes: phase “unknown” [sender]: No route to host (113)
rsync: connection unexpectedly closed (1106082 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(434)

Soultion:

  1. manually run the rsync command from the console for the affected user or directory
  2. rerun the corn job
Tagged with:
 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>