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:
- manually run the rsync command from the console for the affected user or directory
- rerun the corn job
Tags
antivirus bash script comm configd coovaap wrt54g no space left dd-wrt hard reset dd-wrt wr741nd hard reset diff firewall free google seo i.t. support iptables IT Support keywords meta tag linux linux mysql linux script mac mac freeze mac freeze when awaking from hibernate mode meta tag multi boot linux windows netbios parallels desktop freeze pc repair pc support real time traffic remote backup rsync rsync space search engine security seo tcpdump tips useful linux command virtualization wireless ap wrt54g recovery 上門電腦維修 中小企 電腦維修