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

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton