7/4/2023 0 Comments Automate grsync![]() 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.Ģ. Conclusion – How to Use Rsync on a Synology NASġ. ![]()
0 Comments
Leave a Reply. |