Skip to content

Instantly share code, notes, and snippets.

@ntrogers
Created April 28, 2020 15:42
Show Gist options
  • Save ntrogers/4978a7e5afb43201461c89ac2ed5d93e to your computer and use it in GitHub Desktop.
Save ntrogers/4978a7e5afb43201461c89ac2ed5d93e to your computer and use it in GitHub Desktop.
[File Transfer]
# via rsync - preserve symlinks
rsync -avz -e ssh /src/dir user@remote.host:dst/dir
# via tar
tar cf – * | ssh root@atom ‘(cd /destination_dir;tar xf – )’
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment