Tuesday, March 22, 2022

How to ssh pipe copy files from remote to local compressed

ssh  john@192.168.1.49  "cd ~/Documents && tar -cf - assignments/ | gzip -9"  >  assignments.tar.gz


# syntax explanation

ssh    username@remoteIP     "command string"


Labels: , , ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home