[TriLUG] FTP as a stream endpoint

Ron Joffe rjoffe at yahoo.com
Fri Oct 7 16:12:04 EDT 2005


On Friday 07 October 2005 14:58, Brian Henning wrote:
> Hi Y'all,
>    The subject may be a bad choice of words, but here's what I want to
> accomplish, in pseudo-shell code:
>
> tar -cj /some_path/to_backup > ftp user:pass at server put some_file
>
> In English, I want the stdout from tar to go across an ftp link as a PUT
> to a file on the ftp server...
>
> Or an SCP transfer (instead of FTP) would be fine too.

ssh 192.168.1.1 "cd /backup; tar -c * .??* -f - " | tar -C /backup -xvf -

This transfers a directory (whole) to the remote site

Ron




More information about the TriLUG mailing list