September 25, 201114 yr Hi all, I'm trying to copy data from one unraid server to another: 1) Tower 192.168.80.1 2) Ho 192.168.80.99 Installed rsync via unmenu Followed post: http://lime-technology.com/forum/index.php?topic=13432.msg127670#msg127670 1. Install vim using unMenu's Pkg Manager (it's near the bottom) 2. Telent into your unRAID machine that you want to receive the data (in my case that is 'unRAID' ip: 192.168.0.189 3. Type this command: Code: vim /etc/inetd.conf -This will open the inetd.conf file in Vi editor 4. Press the letter 'i' on your keyboard 5. Now you need to insert the following: Code: rsync stream tcp nowait root /usr/sbin/tcpd /usr/bin/rsync --daemon -I placed it in the section below FTP 6. Once completed press 'ESC' then ':' followed with 'wq' - Pressing escape will remove you from insert mode. Pressing ':' will give you an input line at the bottom of your screen and 'wq' will write and quit. 7. Issue the killall command to restart the inetd.conf Code: killall -HUP inetd 8. Check that inetd is loaded Code: ps -ef | grep inetd It should look like this: Code: root 1754 1 0 May21 ? 00:00:00 /usr/sbin/inetd root 10250 10240 0 09:07 pts/0 00:00:00 grep inetd 9. Setup a rsyncd.conf file by doing the following: Code: vim /etc/rsyncd.conf 10. Press the letter 'i' to go into insert mode 11. Enter the following into the conf file Code: uid = root gid = root use chroot = no max connections = 4 pid file = /var/run/rsyncd.pid timeout = 600 [mnt] path = /mnt comment = /mnt files read only = FALSE 12. Press ESC, ':' and 'wq' 13. Now open up another telnet window on the array that has the data you want to copy to the machine we just setup as the Rsync server (for me that is 'Tower' or 192.168.0.199) 14. Type in the following command to being rsync Code: rsync -av --stats --progress /mnt/disk1/ rsync://192.168.0.189/mnt/disk11/ Note that the above will copy disk1 (on tower) to disk11 (on unraid) ** I highly suggest that you install Screen from unMenu and add screen to the beginning of the above command Code: screen rsync -av --stats --progress /mnt/disk1/ rsync://192.168.0.189/mnt/disk11/ This will allow you to close your telnet window and also protect you if you shut down your local PC and still have the rsync script running. To check on the progress you will simply log back into your array and type Code: screen -x or screen -r When I type on the data server rsync -av --stats --progress /mnt/user/Media/ rsync://192.168.80.99/mnt/user/TV\ Shows/ I get: rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(632) [sender=3.0.4] Thanks Josh
September 25, 201114 yr Author Thanks but that was the thread I was trying to copy. I quoted your walkthrough but I'm the error noted: rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(632) [sender=3.0.4] Thanks Josh
September 3, 201312 yr I'm not sure what the OP is trying to accomplish exactly, but I would try changing the rsync command from this: rsync -av --stats --progress /mnt/user/Media/ rsync://192.168.80.99/mnt/user/TV\ Shows/ to this: rsync -av --stats --progress /mnt/user/Media rsync://192.168.80.99/mnt/user/TV
September 4, 201312 yr I'm not sure what the OP is trying to accomplish exactly, but I would try changing the rsync command from this: rsync -av --stats --progress /mnt/user/Media/ rsync://192.168.80.99/mnt/user/TV\ Shows/ to this: rsync -av --stats --progress /mnt/user/Media rsync://192.168.80.99/mnt/user/TV 1: That folder name is "TV\ Shows", not "TV". 2: The OP solved his problem two years ago. [*]How do you know that? [*]Where does it say the OP solved his problem 2 years ago?
Archived
This topic is now archived and is closed to further replies.