Re: how to use tar with scp

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

 



-----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 -)"

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

[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