June 26, 200719 yr 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.
June 26, 200719 yr telnet, mount and copy, checkout the wiki: http://lime-technology.com/wiki/index.php?title=Transferring_Files_from_a_Network_Share_to_unRAID /Rene
June 26, 200719 yr 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.
Archived
This topic is now archived and is closed to further replies.