Copy data between 2 Unraid Servers


Recommended Posts

I'm setting up a second UNRAID I have a large amount of data on my old server that I'd like to transfer to my new UNRAID.

 

Even tho I have a gigbit network I don't want to incur the network overhead of transferring data from the old server, to my desktop computer, to the new server.

 

Swapping drives in and out of machines is out of the question so it needs to be a network copy.

 

Can someone out there who is Jedi in the ways of Linux give me the appropriate commands to mount the shares of new UNRAID sever via telent on my old URAID sever so I can do a cp -rf.

 

much thanks

Link to comment

I'm setting up a second UNRAID I have a large amount of data on my old server that I'd like to transfer to my new UNRAID.

 

Even tho I have a gigbit network I don't want to incur the network overhead of transferring data from the old server, to my desktop computer, to the new server.

 

Swapping drives in and out of machines is out of the question so it needs to be a network copy.

 

Can someone out there who is Jedi in the ways of Linux give me the appropriate commands to mount the shares of new UNRAID sever via telent on my old URAID sever so I can do a cp -rf.

 

much thanks

 

 

On receiving system, install netcat (google for a slackware package, then wget it and run installpkg),

then run:

 

nc -l -p 6666 | tar -C dir_where_you want_to_copy -xf -

 

On sending system run:

 

tar -C dir_from_you want_to_copy --one-file-system -cf- . >/dev/tcp/IP_address_of_receiving_system/6666

 

eg.

 

To copy entire /mnt/user to a system that has IP 192.168.1.1

 

Receiving system: nc -l -p 6666 | tar -C /mnt/user -xf -

Sending system: tar -C /mnt/user -cf- . >/dev/tcp/192.168.1.1/6666

 

 

Here is how to install netcat:

 

cd /var/tmp; wget http://repository.slacky.eu/slackware-12.2/network/netcat/0.7.1/netcat-0.7.1-i486-2as.tgz; installpkg netcat-0.7.1-i486-2as.tgz

 

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.