What's new
Fantasy Football - Footballguys Forums

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Unix Help (1 Viewer)

Cjw_55106

Footballguy
Any Unix gurus out there? I have an iso sitting on a server. I need to copy the iso over to another server. I want to move the whole directory so the mount command I use on the old server will work on the new one.

 
Thanks Bri, but I doubt Id get admin rights to do that.

I should note that this iso sits on a server and I use it to make the installs on different servers...if that makes sense.

 
Not sure I understand. Are you trying to just copy an entire directory from one server to another?

Are they different version of Unix....

 
I have software loaded onto a server. I use a mount command on a different server to mount the software:

mount -o vers=3 <severname>:/opt/CA/agent1135_media/agent1135_media /mnt/r11

<severname> being where the iso sits.

I want the iso to sit on a different server. How do I get it there?

 
I didnt realize you can scp between two servers. I always did it from my desktop to the server.

Im no Unix man! :wall:

 
how about an NFS share and put your install there in the same NFS mount on all new servers and then just run the same script to install

 
scp, sftp, ftp....all depends on what's installed on the servers to do transfers. Just tar it up and use whatever protocol you have available.

 
Last edited by a moderator:
On old server:

scp -r /directory user@newserver:/directory

directory on new server should be created first and have same permissions as old.

 
On old server:

scp -r /directory user@newserver:/directory

directory on new server should be created first and have same permissions as old.
Assuming you have the same group/user hierarchy on server1 as the server2, using -p with scp will preserve the file attributes.

scp -rp /directory user@newserver:/directory

 
On old server:

scp -r /directory user@newserver:/directory

directory on new server should be created first and have same permissions as old.
You could always do something like this:

tar cvf - <directory> | ssh <newserver> "(cd <where you want to put it>;tar xvf -)"

This will create the directory, retain all of the permissions, etc. :)

 

Users who are viewing this thread

Back
Top