Rsync -avhz -delete "/volume1/test test/" test/'" Rsync -avhz -delete test/'" "/volume1/test test/" Running the Synology rsync synchronisation terminal command Start terminal session on server01 or server02:Ĭommand is run from server01 or server02:Īssumed volume1 Purpose: make source shared folder the same on the destination NAS.ĭelete files/folders within the destination shared folder to make sure that the destination shared folder is the same as the source shared folder. Name Destination Synology NAS server: server02 Name Source Synology NAS server: server01 Run the following Synology rsync synchronisation terminal commands at your own risk and first test before usage!!!! Let me start by saying to be careful how you proceed with the following commands because they will overwrite and delete files and folder! So test first and check if the command is doing as expected. Synology rsync synchronisation terminal commands Also changing the files/folders at the destination after changing the permissions will not result in synchronising the source folders to the destination, running a full synchronisation does the job. After the creating of the shared folder at the destination you cannot access the files without changing the permissions. When you already have a shared folder on the destination and the data is quit large, deleting the folder will take more time than to synchronise only the differences. When you have already on the destination, shared folders with identical names as the source shared folders, the folders at destination will be renamed! When the folders don't exists on the destination the will be created. Shared Folder Sync and the difference with Synology rsync synchronisation terminal commands The rsync job will create a backup folder and is not suitable for this purpose. The disadvantage from this way is that a subfolders are created under the destination shared folder and not directly inside the shared destination folder. With Hyper Backup you can create a rsync copy (single-version). Hyper Backup and the difference with Synology rsync synchronisation terminal commands The advantage here is that the folder is created with the correct settings like permissions. It is also possible to create first the shared folder on the destination NAS before the synchronisation. You can make it a shared folder afterwards and the synchronised data will not be overwritten. When the folder on the destination doesn't exits it will be created but not seen in the control panel as a shared folder. Identify both folders for Synology rsync synchronisationĬhoose which folder on the source Synology NAS you want to synchronise to the other Synology NAS server which will be the destination. Both Synology NAS-servers should have the rsync service running otherwise the Synology rsync synchronisation terminal commands don't run. To turn on rsync on the Synology NAS open control panel, file services, enable rsync service. Ssh -i Turn on rsync on the Synology NAS-servers For Windows you can use PuTTY to connect via SSH. This can be done from the control panel under Terminal & SNMP. You have to make sure that SSH is enabled on the Synology NAS. Synology rsync synchronisation terminal access Be careful running the terminal commands because files and folders can be deleted, running the commands is at your own risk. The rsync commando's are executed in a terminal session that's why SSH must be enabled on the Synology NAS. Synology rsync synchronisation terminal explains the steps to synchronise two shared folders via the rsync protocol.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |