The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-21-2002
kymberm kymberm is offline
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
  #2 (permalink)  
Old 10-21-2002
kymberm kymberm is offline
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 (permalink)  
Old 10-23-2002
vikas_sri vikas_sri is offline
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:02 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0