Comment Comment by w0land For copying a directory tree from host1 to host2 preserving user / permissions and compressing on the fly to reduce network usage i use:# from host1:cd $DIRECTORY && tar -jcf - . | ssh host2 "cd DESTINATION_DIR && tar jxvf - " parent w0land 7 years ago
# from host1:
cd $DIRECTORY && tar -jcf - . | ssh host2 "cd DESTINATION_DIR && tar jxvf - "