TrueNAS SCALETrueNAS SCALE Nightly Development Documentation
This content follows experimental early release software. Use the Product and Version selectors above to view content specific to a stable software release.

Rsync Tasks Screens

The Rsync Task widget on the Data Protection screen lists rsync tasks configured on the TrueNAS system.

Data Protection Rsync Task Widget
Figure 1: Data Protection Rsync Task Widget

The Rsync Tasks widget displays No Rsync Tasks configured before adding a task.

Data Protection Rsync Task Widget No Tasks
Figure 2: Data Protection Rsync Task Widget No Tasks

Add opens the Add Rsync Task screen.

Each rsync task is a link to open the Edit Rsync Task screen.

The widget displays the status of a task as PENDING, RUNNING, SUCCESS or FAILED.

Use the play_arrow Run Now icon to manually run the task.

Use the delete icon to open a delete confirmation dialog.

Add and Edit Rsync Task Screens

The Add Rsync Task and Edit Rsync Task display the same settings.

Source and Remote Options

Source and Remote settings specify the direction of the remote sync, the TrueNAS system and the remote rsync server paths to or from the data location, the method to uses to sync the TrueNAS and remote servers and the user with permissions to do the remote sync operation.

Rsync Task Source and Remote Settings
Figure 3: Rsync Task Source and Remote Settings

Browsing to select a path

Click the arrow to the left of the folder icon to expand that folder and show any child datasets and directories. A solid folder icon shows for datasets and an outlined folder for directories. A selected dataset or directory folder and name shows in blue.

Source and Remote Settings
SettingDescription
PathRequired. Enter or use the arrow_right to the left of /mnt folder to browse to the path to copy. Linux file path limits apply. Other operating systems can have different limits which might affect how you can use them as sources or destinations.
UserRequired. Select the user to run the rsync task. Select a user that has permissions to write to the specified directory on the remote host.
DirectionRequired. Select the direction of the flow of data to the remote host. Options are Push or Pull. During a push, the dataset transfers to the remote module. During a pull, the dataset stores files from the remote system.
DescriptionEnter a description of the rsync task.
Rsync ModeSelect the mode from the dropdown list. Select Module to use a custom-defined remote module from the rsync server or select SSH to use an SSH configuration for the rsync task. The remote system must have SSH enabled. The host system needs an established SSH connection to the remote for the rsync task. SSH displays more settings.
Remote HostRequired. Enter the IP address or host name of the remote system that stores the copy. Use the format username@remote_host if the user name differs on the remote host.
Remote Module NameRequired. If Rsync Mode is Module specify the name of the module on the remote rsync server. Define at least one module in rsyncd.conf(5) on the rsync server. Type the Remote Module Name exactly as it appears on the remote system.
Remote SSH PortRequired when Rsync Mode is SSH. Enter the SSH port number of the remote system. By default, 22 is reserved in TrueNAS.
Remote PathEnter an existing path on the remote host. Maximum path length is 255 characters.
Validate Remote PathDisplays if Rsync Mode is SSH. Select to automatically create the defined Remote Path if it does not exist.

Schedule and More Options

Schedule defines when the remote sync task occurs and More Options specify other settings related to when and how the rsync occurs.

Rsync Task Schedule and Other Options Settings
Figure 5: Rsync Task Schedule and Other Options Settings
Schedule and More Options Settings
SettingDescription
ScheduleSelect a schedule preset or select Custom to open the advanced scheduler.
RecursiveSelect to include all subdirectories of the specified directory. When cleared, only the specified directory is included.
EnabledSelect to enable this rsync task. Clear to disable this rsync task without deleting it.
TimesSelect to preserve modification times of files.
CompressSelect to reduce the size of data to transmit. Recommended for slow connections.
ArchiveSelect to preserve symlinks, permissions, modification times, group and special files. When selected, rsync runs recursively. When run as root, owner, device files, and special files are also preserved. Equal to passing the flags -rlptgoD to rsync.
DeleteSelect to delete files in the destination directory that do not exist in the source directory.
QuietSelect to suppress informational messages from the remote server.
Preserve PermissionsSelect to preserve original file permissions. Useful when the user is set to root.
Preserve Extended AttributesSelect to preserve extended attributes, but this must be supported by both systems.
Delay UpdatesSelect to save a temporary file from each updated file to a holding directory until the end of the transfer. All transferred files renamed once the transfer is complete.
Auxiliary ParametersEnter additional rsync(1) options to include. Separate entries by pressing Enter. Note: You must escape the emergency character with a backslash (\) or used inside single quotes (’*.txt’).