Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Copy Folders between 2 unRaid Servers?

Featured Replies

Whats the Best Way to Copy Folders between 2 unRaid Servers?  Lets say i just wanted to do this without the need for a windows computer.

You can copy from one Linux machine to another in many ways.  If the  machine  being  copied from  is  running  Samba and  has  the files in shared  folders you can use the technique  already described.

 

If not, is becomes a  bit harder.

Installed  in unRaid, but not configured is rsync.  If the machine  you are copying from also has rsync, that might work for you.

 

There is one method  that will work if you can get a copy of "netcat"  for both servers. 

You can get a copy for the unRaid server  at the following link, as compiled by Tom

http://lime-technology.com/forum/index.php?action=dlattach;topic=140.0;id=6

 

The basic  idea is to set up two process that will  communicate over  the  lan using netcat.

 

first, put a copy of netcat on your flash drive on both unRaid servers.

 

Then

change directory to the top level drive/directory you wish to copy on the TARGET  machine.

cd /mnt/disk2/your_folder

 

If you then type "pwd"  it should show your current directory is the desired one.

 

Then, on the TARGET machine invoke the following command to listen to port 2000 and create the files/folders as needed

/boot/netcat -l -p 2000 | tar -x

 

Next... on the SOURCE machine with the files you wish to copy.

change directory to the disk/directory with the data you wish to copy to the target machine.

cd /mnt/disk3/folder_with_your_files

 

Now invoke tar and netcat to send  the files to the target machine.

tar -c . --exclude filename_not_to_be_copied --exclude folder_not_to_be_copied | /boot/netcat 192.168.1.1 2000

 

 

Now, in the above command it  is tar -c PERIOD --exclude .....

The PERIOD represents the  alias for  the current directory.

In the same way, the IP address (192.168.1.1 in my example) must  be that of your target machine.

If you have no files or folders to exclude, you may leave out those parts of the tar command  on the source machine.

 

If  all your files are in a single folder, you can simply cd to the parent folder and name the folder like this example showing how I can copy /mnt/disk3/Movies to another server:

cd /mnt/disk3

tar -c Movies | /boot/netcat 192.168.1.1 2000

 

If you have hundreds of gigs of data to copy, it might take hours for the transfer to complete, but this  is still probabaly faster than samba and mounting  a remote file system.  I would never suggest this method across the public internet, as  it is not an encrypted link between the machines, but on our home LAN, it is fine.  On the other hand, if your unRaid server  is accessible from the  public internet, you have other security issues to deal with (no root password to start)

 

Happy file copying...

 

Joe L.

 

 

 

 

 

  • Author

Thanks for help Guys!

 

 

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.