Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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