If you can SSH from your source machine to your destination:
Assuming your source folder is /data/myfolder, and you wish to copy to /newdata/myfolder on the second machine:
Log into the machine you wish to copy from:
cd /data
tar cpf - myfolder | ssh destination.machine.com " (cd /newdata ; tar xpf -)"
This will tar up the folder you wish to copy, preserving permission information, pipe it into an SSH connection to your remote machine, where the stream is untarred into /newdata.
Main Topics
Browse All Topics





by: PeteEngineerPosted on 2009-10-02 at 04:56:22ID: 25476990
Create tar files:
2' -zcvf /backup/filename.tgz .
com/conten t/view/7/
cd /folder_to_backup
tar --exclude='./folder' --exclude='./upload/folder
Copy tar files from extenrnal server:
http://www.joomlabrothers.