QNAP Turbo NAS Software User Manual

Remote Replication

Remote Replication

Previous topic Next topic No directory for this topic  

Remote Replication

Previous topic Next topic Topic directory requires JavaScript JavaScript is required for the print function Mail us feedback on this topic!  

NAS to NAS and Rsync

 

The NAS data can be backed up to a remote NAS or Rsync server by Rsync remote replication. If the backup destination is a NAS, go to "Main Menu" > "Backup Station" > "Rsync Server" and enable the remote NAS as an Rsync backup server.

1.To create a replication job, click "Create a Replication Job".
2.Specify the server type, NAS or Rsync server, of the remote server. Enter a job name. Click "Next".
3.Enter the IP address, port number, username and password to login the remote server. The default port number is 873. Note that the login username must have read/write access to the remote server and sufficient quota limit on the server. Click "Test" to verify the connection. Then click "Apply".
4.Specify the local folder by clicking the Source folder box. After expanding and locating the folder, double click the folder to set it as the directory where the data will be replicated from.
5.Specify the destination folder Destination folder box. Locate the folder in the folder tree and double click the folder to set it as the directory where the data will be replicated to. And, click "Add" to add this pair of replication folders.
6.Click "Backup frequency" to configure the backup frequency. Select to replicate the data immediately or specify the backup schedule.
7.Specify other options as follows for the remote replication job by clicking the "Options" button and click "Apply".
oEnable encryption: Select this option to execute encrypted remote replication. Note that you must turn on "Allow SSH connection" in "Network Services > "Telnet/SSH" and specify the same port number for SSH and encrypted remote replication.
oActivate file compression: Turn on this option to allow file compression during the data transfer process. This option is recommended for low bandwidth environment or remote replication over WAN.
oPerform incremental replication: When this option is turned on, after the first-time replication, the NAS will only back up the files that have been changed since the last backup. The files of the same name, size, and modified time will not be copied again. You are recommended to turn on this option for the replication job which will be executed for more than once in order to shorten the backup time.
oDelete extra files on remote destination: Select the option to synchronize the source data with the destination data (one-way synchronization). Extra files on the destination will be deleted. Source data will remain unchanged.
oHandle sparse files efficiently: A sparse file is a type of computer file that contains large blocks of zero-byte data. Turning on this option may reduce the time required for remote replication.
8.Click "Apply". If you select the "Execute backup immediately" option, the replication task will start at once. Otherwise, it will be performed according to your schedule. Note that the job is recursive. Do not turn off the local NAS and the remote server when remote replication is running.

 

Note: For step 5, the order of selecting the source and destination folders can be changed. The above is just an example.

 

Icon

Name

Description

Start

Start a replication job immediately.

Stop

Stop a running replication job.

View

View Rsync logs (replication results).

Edit

Edit a replication job.

Disable

Disable replication schedule.

Enable

Enable replication schedule.

 

To configure the timeout and retry settings of the replications jobs, click "Options".

Timeout (second): Specify a timeout value for each replication job. This is the maximum number of seconds to wait until a replication job is cancelled if no data has been received.
Number of retries: Specify the number of times the NAS should try to execute a replication job should it fail.
Retry intervals (second): Specify the number of seconds to wait in between each retry.

 

For example, if you entered 600 seconds for timeout, 3 retries, and 60 seconds for retry intervals, a replication job will timeout in 600 seconds if no data is received. The NAS will wait for 60 seconds and try to execute the job a second time. If the job timed out again, the NAS wait for another 60 seconds and retry for a third time.

 

RTRR

 

Real-time Remote Replication (RTRR) provides real-time or scheduled data replication and one-way and two-way data synchronization between two locations (such as local NAS and a remote NAS, local NAS and an FTP server, or local NAS and an external drive, or replication between two local folders.) In real-time mode, the source folder will be monitored and any files that are new, changed, and renamed will be replicated to the target folder immediately. In scheduled mode, the source folder will be replicated to the target folder according to the pre-defined schedule.

 

One way synchronization refers to data synchronization from the source to the destination, while two-way synchronization means both the source and destination are synchronized after new files are copied in either side or files stored on either side are changed or deleted.

 

If the backup destination is a NAS, the RTRR server ("Main Menu" > "Backup Station" > "RTRR Server") or FTP service must first be enabled ("Main Menu" > "Control Panel" > "Network Services" > "FTP") on the remote NAS.

NAS models

Firmware

Maximum number of replication jobs supported

Intel-based NAS

Prior to v3.5.0

64*

v3.5.0 or above

32*

ARM-based (Non Intel-based) NAS

Prior to v3.5.0

RTRR replication not supported.

v3.5.0 or above

8*

*Each job supports maximum 5 folder pairs.

 

If your NAS models are not listed below, please visit http://www.qnap.com for details.

Intel-based NAS

TS-x39 series, TS-x59 series, TS-x69 series, TS-509, TS-809, TS-809 Pro, TS-809U-RP, SS-439 Pro, SS-839 Pro, TS-x59 Pro+, TS-879 Pro, TS-1079 Pro, TS-879U-RP, TS-EC879U-RP, TS-1279U-RP, TS-EC1279U-RP

ARM-based (Non Intel-based) NAS

TS-x10, TS-x12, TS-x19 series

 

Follow the steps below to create a replication job.

1.Click "Create a Replication Job".
2.When the wizard shows up, click "Next".
3.Select the synchronization locations and click "Next". Make sure the destination device has been formatted and folders have been created. Two synchronization options are available: one-way synchronization and two-way synchronization.
oFor one-way synchronization, you can choose to:
Synchronize data from a local folder to a remote folder (NAS or FTP server)
Synchronize data from a remote folder (NAS or FTP server) to a local folder
Synchronize data from a local folder to another local folder or an external drive
oFor two-way synchronization, you can choose to:
Synchronize data between the source and destination

4. Enter the IP address or host name. Select the server type (FTP server or NAS server with RTRR service enabled; note for two-way synchronization, only the NAS server is available.)

oRemote replication to FTP server: Specify the port number and if you want to enable FTP with SSL/TLS (Explicit) for encrypted data transfer. If the FTP server is behind a firewall, enable passive mode. Enter the username and password with read/write access to the server. Click "Next".
oRemote replication to NAS with RTRR service: Enter the IP address of the RTRR service-enabled server. Specify the connection port and select whether or not to enable secure connection. The default port number for remote replication via RTRR is 8899. Enter the password for RTRR connection. Click "Next".
5.Select the folder pair for data synchronization.
6.Each sync job supports maximum 5 folder pairs. Select more folder pairs and click "Add". Click "Next".
7.Choose between real-time and scheduled synchronization. Real-time synchronization copies files that are new, changed, and renamed from the source folder to the target folder as soon as the changes are made after the first-time backup. Scheduled synchronization copies files from the source folder to the target folder according to the pre-configured schedule. The options are:
oReplicate Now: Replicate data immediately.
oPeriodically: Enter the time interval in hour and minute that the backup should be executed. The minimum time interval is 5 minutes.
oHourly: Specify the minute when an hourly backup should be executed, e.g. enter 01 to execute backup each first minute of every hour, 1:01, 2:01, 3:01...
oDaily: Specify the time when a daily backup should be executed, e.g. 02:02 every day.
oWeekly: Select a day of the week and the time when a weekly backup should be executed.
oMonthly: Select a day of the month and the time when a monthly backup should be executed.
oOccurs once at: Specify the date and time the scheduled replication job will once be executed and this replication job will be executed only once.

 

Note:

If a folder or its parent folder or child folder has been selected as the source or destination in a folder pair of a replication job, you cannot select the folder as the source or destination of another folder pair of the same job.
You can also create a folder as you select the folder pair. To do so, please enter the folder name and click the folder icon from the drop down list.
Starting QTS 4.1, RTRR can also back up the entire FTP site. To do so, please select the root (/) from the folder drop-down list. Please note that this is only the case when the source is a FTP site.
For two way synchronization, only scheduled data replication is supported.
The expiration time setting is not available for "Replicate Now" and "Occurs once at" in Step 7.
Bandwidth Control in both RTRR and Rsync only works if both NAS servers of a replication job (sender and receiver) are QNAP NAS and use firmware version 3.6 or above.

 

8.To configure synchronization policy, select "Configure policy and filter" and click "Next". Select whether or not to enable the following options:
oDelete extra files: Delete extra files in the target folder. Deletions made on the source folder will be repeated on the target folder. This option is not available for real-time synchronization.
oDetect sparse files: Select this option to ignore files of null data.
oCheck file contents: Specify to examine file contents, date, size, and name to determine if two files are identical. This option is not available for real-time synchronization.
oCompress files during transmissions: Specify whether or not the files should be compressed for synchronization operations. Note that more CPU resources will be consumed.
oIgnore symbolic links: Select this option to ignore symbolic links in the pair folder.
oExtended attributes: Select this option to keep the information in extended attributes.
oTimeout and retry settings: Specify the timeout period and retry settings if a synchronization operation fails.
9.Specify the file size, file types to include/exclude, and file date/time to filter data synchronization. Enter a job name.
oFile size: Specify the minimum and maximum size of the files to be replicated.
oLast modified: Specify the number of days files are last modified for replication.
oInclude file types: Specify the file types to be replicated.
oExclude file types: Specify the file types to be excluded for replication.
oFile date/time: Specify the date and time of the files to be replicated.
10.Click "Next".
11.Confirm the settings and click "Next".
12.Click "Finish" to exit the wizard.

Icon

Name

Description

Enable and Start

Enable connection to a remote server.

Start a replication job.

Stop

Stop connection to a remote server or external drive.

Stop

Stop a replication job.

View

View job status and logs; download logs.

Edit

Edit the connection settings of a remote server.

Edit the settings of a replication job.

Delete

Delete connection settings to a remote server.

Delete a replication job.

This button is available only after a replication job is stopped or the connection to the remote server is stopped.

 

To edit the replication job properties, click "Options".

 

Under "Event Logs" you can select to enable "Download Detailed Logs" and specify the maximum file size of the log file. You can also select to send an email alert when synchronization fails or completes. Note that the SMTP server settings must be properly set up on the NAS ("System Settings" > "Notification").

 

Specify the replication policy in "Policy" and filter settings in "Filter". These will become the default settings for all RTRR replication jobs.

 

Downloading Replication Job Logs

 

To view the status and logs of a replication job, click the "View" button under  "Action". You can view the details of a replication job. You can view the job logs or download the logs by clicking "Download Logs". The log file can be opened by Microsoft Excel or other text editor software. Note that this button is only available after you have enabled "Download Detailed Logs" in "Options" > "Event Logs" and executed the replication job once.

 


© 2015 QNAP Systems, Inc. All Rights Reserved.