3 ms·
I would change this to: tar czf - . | ssh destination "cd /remote/dir; tar xz"
by cowmix 14y ago
I would change this to:
tar czf - . | ssh destination "cd /remote/dir; tar xz"
- appplemac 14y agoThere is also tar -C /local/dir -czf - . | ssh dest "tar -C /remote/dir -xz"
- zengargoyle 14y agoYou will one day punch yourself for not being safe. tar czf - | ssh destination 'cd /remote/dir && tar xzf -' Test that `cd` or one day you'll end up extracting in the wrong place.