Re: how to use tar with scp

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

 



it says: 
archive.tar: file or directory doesn't exist

Do i have to create it manually?

Thanx
Nitin

----- Original Message ----- 
From: "Ken Rossman" <rossman@xxxxxxxxxxxx>
To: <redhat-list@xxxxxxxxxx>
Sent: Friday, November 14, 2003 7:18 PM
Subject: Re: how to use tar with scp


> If you just want to save a tar saveset as a file, then replace the
> 'tar -xf -' part with a simple 'cat >filename.tar' after the 'cd' part.
> 
> E.g:
> 
>    tar -pczf - /home/admin | ssh 10.10.10.6 "(cd /dump; cat 
>  >archive.tar)"
> 
> 
> On Friday, November 14, 2003, at 08:46 AM, Nitin wrote:
> > but i do not want to extract it...
> >
> >> You have the ssh command issuing a remote 'cd' command, but there is
> >> nothing running at the other end to catch and process the stream of
> >> tar data being produced at the source.  Try this instead:
> >>
> >>    tar -pczf - /home/admin | ssh 10.10.10.6 "(cd /dump; tar -xf -)"
> >>                                                       ^^^^^^^^^^^
> >>                                                       add this in
> 
> 
> -- 
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
> 


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux