Skip to content

Instantly share code, notes, and snippets.

@madis
Created October 20, 2016 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madis/937109a1a0e342f6acd453a9e3f0350a to your computer and use it in GitHub Desktop.
Save madis/937109a1a0e342f6acd453a9e3f0350a to your computer and use it in GitHub Desktop.
Copy multiple small files from remote machine using ssh & tar
# From http://meinit.nl/using-tar-and-ssh-to-efficiently-copy-files-preserving-permissions
ssh user@machine-where-precious-data-is "tar czpf - /some/important/data" | tar xzpf - -C /new/root/directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment