I'm a Linux newbie and I'm trying to zip a folder which exists on a remote host and export it to another remote host. A quick Google search lead me to tar/gzip and rsync options but I'm not sure how exactly I could use them.
To be very clear I have logged into remote host through PuTTY (SSH)
user@remotehost1 and there is a folder, folder1 (
/u01/folder1) which has other sub-folders and files underneath it. I want to gzip it and export it to another remote host user@remotehost2. How can I achieve this. Could some on clearly explain me.