![]() WARNING! Please make sure you are on a secure network before doing this. Luckily, with Synology it's a breeze to share your files on an internal network. For accessing tens of thousands of photos, and videos, an NFS share is ideal. The advantage with mounting an NFS share is that you dont' actually spend disk space on your Linux computer, but you still get access to your files over the wire. One way of doing it is rsyncing, another way is simply mounting an NFS share. I also happen to have Linux servers in my home network, and sometimes I want to access my backed up documents or photos from my Linux servers. For the backup process, I use the Synology product Cloud Station Backup, which supervises certain folders and makes sure any changes are pushed to my Synology for safekeeping. I mainly use if for backup purposes, for example automatically backing up all photos that I store on my Windows PC at my home office. It’s always a good idea to back up your Synology NAS offsite.I happen to have a Synology NAS on my internal network. If you’d like to automate this process by using SSH keys and Cron, please check out our tutorial! This process is NOT automated! You can only back up your machines when you execute the command. Rsync does incremental backups, which means that it will view the files that are changed and back them up to the Synology NAS. The first time executing this, all files will need to be backed up which will take a little longer than subsequent backups. ![]() This tutorial looked at how to use Rsync on a Synology NAS. Conclusion – How to Use Rsync on a Synology NAS When the process is completed, you will see that your files are now on your Synology NAS in the folder we created. sudo rsync -avx / IP ADDRESS]://Backups/ġ0. When prompted, enter the NAS password once again. When the dry run has finished (assuming the results are what you were expecting), remove the “n” parameter, and run the command. NOTE: you might need to enter the password of your Linux user first.ĩ. Enter the password of your Synology NAS user account that has permission to the shared folder. If this is your first time running the command, you will be asked to accept the ECDSA key fingerprint. It is also important to note that the first “/” in the Rsync command is the source data that we will be copying to the NAS.ħ. It will simply inform the user what files will be copied when the command (with the “n” parameter removed) is executed. NOTE: the “n” command line parameter above will run a dry run when this is executed. The Rsync command will be constructed as follows: sudo rsync -avnx / IP ADDRESS]://Backups/ ![]() Many different parameters can be added to a Rsync command, but in this tutorial, we will back up our entire Linux hard drive to our Backups device subfolder on our Synology NAS. At this point, we will begin to construct our Rsync command. Log in to your Linux PC (or whatever device you’ll be using) and open Terminal. This rule must be above any “deny” rules that exist.Ħ. NOTE: you can secure this one step further if you’d like by only opening port 22 traffic to internal IP addresses (use your internal IP address range). If your firewall is enabled, create a firewall rule that opens port 22 for SSH. Create a subfolder in the shared folder with the name of the PC that you will be backing up (if you don’t want to back up directly to the root folder).ĥ. Ensure that the user account you will be authenticating with has read/write access to the shared folder.Ĥ. Create a Backups shared folder (you can use whatever name you’d like, or can utilize one that already exists) and note the volume number (you will need this later).ģ. Log in to DSM, open the Control Panel, select File Services and ensure that enable rsync service is selected.Ģ.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |