How do you transfer a file.

Lowell Gilbert freebsd-questions-local at be-well.no-ip.com
Fri Jul 11 12:36:44 PDT 2003


Roger Merritt <mcrogerm at stjohn.ac.th> writes:

> This is helpful. I have a similar, but somewhat more complex
> problem. I want to backup the entire /usr/home directory to another
> machine on the network. FTP has not been disabled (yet) and I have
> NcFTP installed. ssh is also set up between the two machines, so scp
> is available. The first machine has very little disk space available,
> so I don't think I can tar the directory tree on the native
> machine. I've also installed the rsync port. I don't have a time
> problem, I could leave the job running overnight.
> 
> Any suggestions or recommendations would be welcome.

Doesn't sound very complex to me.
Something like 
        tar -cf - /path/to/back/up |ssh other-host 'cat > new.tar'
will do it.


More information about the freebsd-questions mailing list