RSYNC via SSH on solaris 10

How to use rsync via ssh on solaris 10:

1. install rsync package on both (server & client) and follow the instruction :

# pkgadd -d rsync-2.6.9-sol10-sparc-local (sparc)

#pkgadd -d rsync-3.0.7-sol10-x86-local (x86)

don't forget to install libcap also if it doesn't exist on servers (#pkginfo |grep -i libcap) :

#pkgadd -d libpcap-1.1.1-sol10-sparc-local (sparc)

#pkgadd -d libpcap-1.1.1-sol10-x86-local (x86)

Voila! you have rsync package installed!:

-bash-3.00$ which rsync

/usr/local/bin/rsync

-bash-3.00$ which ssh/usr/bin/ssh

2. to check whether it is worked using ssh or not :

#rsync -avn -e ssh --rsync-path=/usr/local/bin/rsync remoteuser@remotehost:/dirtobecopied/ /localdir/destination


3. to try synchronize the data with option Z (compressed using gzip) :

#rsync -avz -e ssh --rsync-path=/usr/local/bin/rsync remoteuser@remotehost:/dirtobecopied/ /localdir/destination

4. to limit transfer speed/bandwidth (e.g 1MBps):

#rsync -avz --bwlimit=1024 --rsync-path=/usr/local/bin/rsync remoteuser@remotehost:/dirtobecopied/ /localdir/destination

Note: I assume you already know how to make ssh without password prompted .


if you found "ld.so.1: rsync: fatal: libgcc_s.so.1: open failed: No such file or directory" when you execute rsync command above, please do this on host (both) :

# ln -s /usr/sfw/lib/libgcc_s.so.1 /usr/local/lib/libgcc_s.so.1

enjoy rsync!


Comments

Popular posts from this blog

OSS RC : learning by doing (new beginning)

convert install.esd to install.wim