I can never quite recall the exact command when I actually need it, so I'm parking it here for copy-paste. TL;DR (for the impatient) # Pull from remote to local (with sudo) ssh host "sudo tar cz /var/log/nginx" | tar xzv --strip-components=3 # Push from local to remote tar cz . | ssh host "tar xz -C /path/to/dest" What happened I needed to pull... Weiterlesen: Notes on the tar + ssh pipe technique
Intelligence View
⚡ tsecurity.de Intelligence
Notes on the tar + ssh pipe technique
I can never quite recall the exact command when I actually need it, so I'm parking it here for copy-paste. TL;DR (for the impatient) # Pull from remote to…
Intelligence Digest — free The top security news daily · unsubscribe anytime