TrueNAS Nightly Development DocumentationThis content follows experimental nightly development software. Pre-release software is intended for testing purposes only.
Use the Product and Version selectors above to view content specific to a stable software release.
Replication Task Screens
22 minute read.
The Replication Task widget on the Data Protection screen lists replication tasks configured on the TrueNAS system. Replication tasks work with periodic snapshot tasks to complete the replication.
The Replication Tasks widget displays No Replication Tasks configured before you add a task.
Click Replication Task on the widget heading to open the Replications Tasks screen that lists all tasks configured on the system.
Add on the Replication Task widget opens the Replication Task Wizard.
The Edit Replication Task screen.
Edit icon opens theThe icon opens a dialog. Run Now
The icon to opens the Restore Replication Task window. Restore
The Download encryption keys icon downloads any encryption keys associated with the task.
The icon opens a delete confirmation dialog. Delete
State displays the status of the replication task as SUCCESS for completed tasks, FAILED if the task fails to complete the sync, and PENDING for tasks that have not run yet. Click on the state oval to open the Logs dialog for that task. Download Logs saves a copy of the current task logs.
Configure SSH in TrueNAS before creating a remote replication task. This ensures that new snapshots are regularly available for replication.
The Replications Tasks screen lists the replication tasks configured on the system.
Columns displays a list of option to customize the list view to add or remove information to the table. Options are Select All, Direction, Transport, SSH Connection, Source Dataset, Target Dataset, Recursive, Auto, Enabled, State, Last Snapshot, and Reset to Defaults.
Before adding replication tasks this screen displays No Replication Tasks and the Add Replication Tasks option that opens the Replication Task Wizard.
Click anywhere on a task row to expand it and show details about that task and the options to run, restore, edit or delete that task.
The details view of each replication task shows the Transport, SSH Connection, Source Dataset, Target Dataset, Recursive, and Auto settings.
The Edit Replication Task screen.
Edit button opens theThe
Run Now button opens a Run Now dialog.Click CONTINUE to start the replication task.
The
Restore button opens the Restore Replication Task window.Enter a new name for the task and select the location to store the data, then click Restore. The system creates the new file and displays the task on both the widget and list screen with the PENDING status.
When a replication task involves a key-encrypted source or destination, the icon shows in the task options. This downloads any encryption keys to your local system.
The
Delete icon opens a delete confirmation dialog.Click Confirm to activate Delete.
There are two ways to add a replication task, the wizard and the advanced creation screen. These two methods share many settings that are described below. Shared settings are documented these sections:
Add, or if no replication task exist, Add Replication Tasks opens the wizard.
The wizard has two screens:
- What and Where settings specify the task name, data source and destinations, the type of replication (local or remote), transport options (SSH connection).
- When settings specify when to run the task and how long to retain the replicated snapshots.
Advanced Replication Creation opens the Add Replication Task screen with the same settings found in the wizard and more advanced settings.
The What and Where screen allows loading source and destination information from a previous task, setting the source and destination direction for the transfer and the datasets and directories to use, allows adding encryption and an SSH connection for remote replications, specifying the naming schema to use, and giving a name to the task.
The Encryption and SSH Connection options show when the source or destination is set to On a Different System.
Settings change based on the Source Location and Destination Location option selected. Options are, On this System (local replication) and On a Different System (remote replication).
Also include snapshots with the name options show different snapshots settings based on the naming option selected.
Setting Source Location to On This System and Destination Location to On a Different System and making naming schema choices changes the the wizard screen to show all available settings.
The Encryption option shows additional settings on the Add Replication Task screen and the What and Where wizard screen below the Destination settings.
The New SSH Connection window opens after selecting Create New in the SSH Connection field. It allows you to set up a new SSH connection for the remote system.
The When wizard screen sets the schedule for running the task and the retention period for keeping the replicated snapshots. Replication Schedule and Destination Snapshot Lifetime options change the setting displayed on the screen.
The Replication Schedule options set when to run the task based on the schedule defined in Schedule or to run it one time.
The Destination Snapshot Lifetime setting determines how long the replicated snapshot is retained on the destination server.
Advanced Replication Creation opens the Add Replication Task screen. Click before or after adding values to any setting on the wizard screens.
The settings in General and Transport Options specify the name of the task, the direction of the data transfer, the transport connection type and method settings for each type. The Transport setting changes options displayed in the Transport Options area (SSH is the default setting). All three Transport field options share the two settings displayed for Local, and the SSH Connection field displays for both the SSH and SSH+NETCAT transport selections.
These setting display for all three Transport options.
These setting options display in addition to the two options displayed when Transport is set to SSH.
These setting options display in addition to the two options displayed when Transport is set to SSH+NETCAT.
The settings in Source specify the location of files you push or pull in the replication task, and the properties applied to the replicated data. The Source setting options change based on selections made in Recursive and Replicate Specific Snapshots and each display additional setting options.
The settings in Destination specify the location of files you push or pull in the replication task, and the properties applied to the replicated data. The destination setting options change based on selections made in Encryption and Snapshot Retention Policy which display additional setting options.
The snapshot settings below change options displayed based on selections made.
These schedule setting options are common to both the Replication Task Wizard and Add Replication Task screens.
The Edit Replication Task screen displays most of the settings found on the advanced Add Replication Task screen with a few exceptions.
- General settings do not include the Direction option. The Transport settings on the edit screen are the same settings as the advanced creation settings.
- Source and Destination setting options are the same as the advanced creation settings.
- Replication Schedule setting options are the same as the advanced creation settings.
See the section linked above for information on the Edit Replication Task screen settings.