![]() |
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 Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| rsh to change multiple ip in multiple servers? | kenshinhimura | Shell Programming and Scripting | 2 | 02-18-2008 03:04 AM |
| Moving multiple files and renaming them on the fly | daemongk | Shell Programming and Scripting | 1 | 06-08-2007 01:36 PM |
| moving and renaming multiple files | rocinante | Shell Programming and Scripting | 1 | 06-07-2007 08:20 PM |
| moving directories to new directories on multiple servers | mackdaddy07 | Shell Programming and Scripting | 0 | 04-06-2007 11:30 AM |
| moving multiple files --recursively using BSD | moxxx68 | UNIX for Advanced & Expert Users | 3 | 09-12-2005 07:41 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
moving files across multiple servers
This is hard to describe but I'll try. How can access another host from one host? example, is it possible to tar across to another host on your network? if i want to tar a directory directly to another host, can i do something like tar cvf host:/home/file.tar mydirectory ? or will i have to tar on host one and ftp the file across? Kind of an odd question, but thought I'd ask anyways.
thanks |
|
||||
|
found an example but doesn't work right
found an example: for example, to tar files from one host to the tape on another:
tar cvfb - 20 files | rsh hostname dd of=/dev/rmt/0 obs=20 BUT i get invalid block size for my 20 files, i substituted /home instead of 20 files and then when i take off the block size, i got permission denied. tar cvhf - /home | rsh myhost dd of=/dev/rmt/0 |
|
||||
|
You can use
tar cf - <file> <dir> | remsh <host> -l <user> " tar xf -" tar cf - will dump it on terminal and tar xf - will take this dump and open it on another server. I hope this will solve your problem. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|