Quantcast
Channel: scp and compress at the same time, no intermediate save - Unix & Linux Stack Exchange
Browsing latest articles
Browse All 4 View Live

Answer by tsionyx for scp and compress at the same time, no intermediate save

Small improvement for the dkbhadeshiya's answer: you don't have to do cd dir, just specify working directory to the tar instead: ssh user@host "tar -C /path/to/data/ -zc directory_name" | tar zx You...

View Article



Answer by dkbhadeshiya for scp and compress at the same time, no intermediate...

I think this command will do the trick ssh user@host "cd /path/to/data/;tar zc directory_name" | tar zx EDIT: an earlier version was with two wrong "f" options. Now, first of all you have to execute...

View Article

Answer by terdon for scp and compress at the same time, no intermediate save

There are many ways to do what you want. The simplest is to use a pìpe: tar zcvf - MyBackups | ssh user@server "cat > /path/to/backup/foo.tgz" Here, the compression is being handled by tar which...

View Article

scp and compress at the same time, no intermediate save

What is the canonical way to: scp a file to a remote location compress the file in transit (tar or not, single file or whole folder, 7za or something else even more efficient) do the above without...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images