rsync
via ssh
, specifically (:.Exact directory copy:
wimlib-imagex --pipable --unix-data | ssh | ...
Accessing individual files:
sshfs (via sftp)
@nixCraft If I don't control either or both of the networks, scp.
If it's on a network I control, 'tar -cf - files |nc ip port' on the host that has the data and 'nc -l port |tar -xf -' on the host that wants the data.
@nixCraft rsync because you can use it over ssh .
Local to Remote: rsync [OPTION]... -e ssh [SRC]... [USER@]HOST:DEST
Remote to Local: rsync [OPTION]... -e ssh [USER@]HOST:SRC... [DEST]
So you get the power of rsync and the security of ssh.
scp for individual files.
For directory trees I generally do some variant of *ssh remotehost "cd $basedir; tar cvfz . -" > remotehost_remotedir.tgz*
i use NFS or FISH