The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

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

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-21-2002
Registered User
 

Join Date: Mar 2002
Location: Texas
Posts: 120
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  
Old 10-21-2002
Registered User
 

Join Date: Mar 2002
Location: Texas
Posts: 120
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  
Old 10-23-2002
Registered User
 

Join Date: Oct 2002
Location: United Kingdom
Posts: 9
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
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:17 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0