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:[EMAIL PROTECTED] 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

-- 
TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ  : http://trilug.org/faq/
TriLUG Member Services FAQ : http://members.trilug.org/services_faq/

Reply via email to