Re: how to use tar with scp

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

 



----- Original Message ----- 
From: "Sameh Attia" <sameh.attia@xxxxxxxxxx>
To: <redhat-list@xxxxxxxxxx>
Sent: Thursday, November 13, 2003 5:12 PM
Subject: Re: how to use tar with scp


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Nitin wrote:
>
> | hi all,
> |
> | I've been using BRU for my backup for some time, but now, it's
> | throwing e errors. So, for the time being, I want to use tar for my
> | backup. Can anybody please let me know how to use 'tar' to copy
> | archived file to a remote machine using 'scp'. Any help or ideas will
> | be appreciated. It's really urgent.
> |
> | Thanks in advance
> | Nitin
>
> Here is a sample command u can issue to do this
>
> tar -pcvf - /path | ssh <user>@<host> "(cd /path; tar -xf -)"

i'm using:
tar -pczf - /home/admin | ssh 10.10.10.6 "(cd /dump)"

but it isn't working. couldn't find what's wrong with it. could u please
find?

Thanx anyway
Nitin

>
> the key here is the pipline and the ssh
> sure ull need to modify the above line to better match ur case
>
> - --
> Sameh Attia
> Senior System Engineer
> T.E. Data
> - --
> dc -e
>
'603178305900664311156641389051003470569569613466992253686426210705237258P'
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.2 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAj+zbg8ACgkQSUZgoeYoLGofiACffgPQYJU8HCCWcsBjuXYXjC2y
> JPYAnAvjdrzT86FvFT3TqjJo15L3lj6i
> =exIy
> -----END PGP SIGNATURE-----
>
>
>
> -- 
> 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