Skip to content

Instantly share code, notes, and snippets.

@eyecatchup
Created November 5, 2013 17:54
Show Gist options
  • Save eyecatchup/7323201 to your computer and use it in GitHub Desktop.
Save eyecatchup/7323201 to your computer and use it in GitHub Desktop.
Wicket trick to directly copy data from the "machine-where-precious-data-is" to the machine you are working on, using the benefits of tar (preserving permissions, links, etc) but not being hindered by the difficulties of tar. (making these possibly large files and so on.) - @author: http://meinit.nl/using-tar-and-ssh-to-efficiently-copy-files-pr…
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