September 25, 20169 yr I would like to set up an unraid 6 server with multiple varied-sized disks as a backup server for my Synology diskstation. It seems as if the only way to do this is to have an rsync server running on the Unraid server. Am I correct? Or is there a way to Use the unraid server to backup the synology shares. If Rsync is my best bet, is there a quick guide to setting up rsync on unraid?
October 2, 20169 yr Author Still trying to find out if there arte any instructions for setting up unraid as an rsync destination...
October 2, 20169 yr Author Thanks. That is what I needed, I think. I had searched, but did not get that thread (or did not realize it was what I needed). I will now try to figure it out step by step. I presume I should shut the system down and then create/edit the necessary files on the usb stick.
October 3, 20169 yr Community Expert The flash disk can be shared on the network as the share named "flash". From Main - Boot Device, click on flash then set SMB Security. I have mine set to Export: Yes (hidden). This makes it not appear when browsing the network, but you can still access it by typing its path. You can edit any files on your flash over the network, but you should be sure to use an editor that does Linux line endings. Many people recommend notepad++ (freeware).
October 3, 20169 yr Author I am trying to follow those steps, but when I look at the flash drive, all I see are config and syslinux folders... Do I need to create the other folders on the flashdrive? Apologies, I am a total Unraid (and linux) newbie. I did find the go script in the config folder
October 3, 20169 yr Community Expert I am trying to follow those steps, but when I look at the flash drive, all I see are config and syslinux folders... Do I need to create the other folders on the flashdrive? Apologies, I am a total Unraid (and linux) newbie. I did find the go script in the config folder I think the folder that is mentioned in the other thread is the custom folder. You will have to create it yourself. Also, if doing this over the network, the /boot folder is actually the same thing as the flash share, so you would create a custom folder in the flash share. You can also do all of this easily from console/telnet/ssh by using mc (Midnight Commander). It is a text-gui which give you two panes to browse and do all of the things you might do in Windows Explorer, as well as view and even edit files. Well worth learning about if you haven't already. If you use mc the other thread might be a little easier to follow since there is no need to switch between thinking about the flash share and thinking about the /boot folder.
October 3, 20169 yr Author I think I am getting closer However, when It tries to run the s20-init.rsyncd file, I get: /bin/bash^M: bad interpreter: no such file or directory and then nothing more. I am editing the flash drive over the network using notepad++
October 3, 20169 yr Community Expert I think I am getting closer However, when It tries to run the s20-init.rsyncd file, I get: /bin/bash^M: bad interpreter: no such file or directory and then nothing more. I am editing the flash drive over the network using notepad++ You need to make sure notepad++ is saving the file with linux (Unix) line endings. The ^M is a sure sign that is is saving with DOS line endings.
October 4, 20169 yr I think I am getting closer However, when It tries to run the s20-init.rsyncd file, I get: /bin/bash^M: bad interpreter: no such file or directory and then nothing more. I am editing the flash drive over the network using notepad++ You need to make sure notepad++ is saving the file with linux (Unix) line endings. The ^M is a sure sign that is is saving with DOS line endings. Edit, EOL Conversion, UNIX / OSX Format
October 4, 20169 yr Author Thanks Squid and trurl! Notepad++ is doing the right thing now! I have things up and running now! I have done a test rsync operation from my windows desktop using deltacopy client and also using my synology diskstation. I need to play a bit more and configure things, but will write up the process as a newbie. I still get an error message stating "no such file or directory" in response to line 1 of the s20-init.rsyncd file: #!/bin/bash, but the rsync server is is up and running, copying files into my default unraid share... I now need to figure stuff out at the synology hyperbackup end of things as I am not sure what the difference is between "remote rsync server" and "remote data copy". Both of these backups run, and the key difference is that in the second one I can make the server keep copies of deleted files and the files on the unraid server are easily visible in the share. In the former, I can only view the files from the hyperbackup program on the synology diskstation. This looks as if my plan to backup significant sections of my Synology diskstation to an Unraid server via rsync will work! Over the next week I will test the system to back up more than an individual drive's worth of data to see where things end up.
October 4, 20169 yr Author I am still not sure why the #!/bin/bash line gives an error, but the system seems to work in spite of that. I am wondering if that does not apply to unraid 6.2.
Archived
This topic is now archived and is closed to further replies.