Created
October 20, 2016 09:47
-
-
Save madis/937109a1a0e342f6acd453a9e3f0350a to your computer and use it in GitHub Desktop.
Copy multiple small files from remote machine using ssh & tar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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