![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cut command on a remote machine using rsh | eamani_sun | Shell Programming and Scripting | 1 | 06-04-2008 09:33 PM |
| executng program on remote machine using ssh | sewood | Shell Programming and Scripting | 1 | 02-17-2008 07:03 PM |
| Help regarding theMailing of output from a remote machine | OSD | UNIX for Advanced & Expert Users | 1 | 08-21-2007 01:00 PM |
| how to execute a script on remote machine | balireddy_77 | Shell Programming and Scripting | 4 | 09-27-2006 07:45 PM |
| Searching for files in Remote Machine | matrixmadhan | UNIX for Dummies Questions & Answers | 0 | 06-21-2005 05:02 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
tar doesn't support this directly, and neither would any sane archiver. Your question boils down to "how do I send files to another machine?"
A couple options:
|
|
||||
|
$ tar --rsh-command=`which ssh` -zcvf remote_host:filename.tar.gz -- directory_to_tar
Single line solution, not a hack, part of tar. Works even if you don't have enough space to create the archive on the local machine. use -jcvf and filename.tar.bz2 if you want a little better compression. Data is sent securely over the wire, assuming you have SSH setup correctly. man tar is your friend. Boosh! Last edited by jvpiel; 01-23-2009 at 07:20 PM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|