![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| rsh to change multiple ip in multiple servers? | kenshinhimura | Shell Programming and Scripting | 2 | 02-18-2008 12:04 AM |
| Moving multiple files and renaming them on the fly | daemongk | Shell Programming and Scripting | 1 | 06-08-2007 10:36 AM |
| moving and renaming multiple files | rocinante | Shell Programming and Scripting | 1 | 06-07-2007 05:20 PM |
| moving directories to new directories on multiple servers | mackdaddy07 | Shell Programming and Scripting | 0 | 04-06-2007 08:30 AM |
| moving multiple files --recursively using BSD | moxxx68 | UNIX for Advanced & Expert Users | 3 | 09-12-2005 04:41 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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.
__________________
Thanks Vikas Srivastava |
|||
| Google The UNIX and Linux Forums |