Saturday, November 5, 2011

Solaris:Transfer data using tar rsync

tar cf - /source/file | (cd /target/file; tar xf -)


or


tar cf - * | ( cd /target; tar xfp -)


or


tar cvzf - my_dir | ssh server 'tar xzf -'


or

tar -cf - directory | ssh user@hostB "cd target_dir; tar -xf -"

or

rsync -aE -e ssh directory user@hostB:target_dir