News for hackers. Stuff that matters.
Re:A little SSH file copy magic at the command line by w0land on Thursday October 10, 2019 @10:21AM (#21214791)
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 - "

There are no comments on this comment yet.