Re: looking for thread about backup using ssh -T

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12Apr2008 13:15, Mike Wright <mike.wright@xxxxxxxxxxxxxx> wrote:
> Hi all,
>
> There was a fascinating thread about using ssh to do backups to a remote 
> host without using a term.  Something like:
>
>     "tar jc some_dir | ssh -T user@remote cat > backup"
>
> Tried the examples and then some --- works great!
>
> I seem to have fat-fingered the delete key and have lost that email thread 
> and try for the life of me can't find it again.

Get rid of the -T. The "cat >backup" needs to be executed by the shell
at the far end, so quote it:

  tar cf - some_dir | ssh user@remote 'cat >backup'

Without the quotes your local shell takes the ">backup" and funnels the
data to the _local_ file "backup". So you pump the backup over the net
via ssh, and _back_ again, landing locally.
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

The English-speaking world may be divided into those who
neither know nor care what a split infinitive is, those who
don't know, but care very much, those who know and approve,
those who know and condemn, and those who know and distinguish.
- H. W. Fowler  


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux