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.
TrueCloud Backup Tasks Screens
10 minute read.
The TrueCloud Backup Tasks widget on the Data Protection screen shows configured TrueCloud tasks, and provides access to configuration screens to add or schedule recurring transfers between TrueNAS and a cloud storage provider account like Storj iX.
TrueCloud backup tasks are an effective method to back up data to a remote location, restore snapshots, or perform cloud-storage-migration.
The TrueCloud Backup Tasks widget shows a list of tasks configured on the system.
The widget shows No records have been added yet until a TrueCloud task is added.
The widget header opens the TrueCloud Backup Tasks screen that lists all TrueCloud backup tasks configured on the system.
Add on the widget and the TrueCloud Backup Tasks screen opens the Add TrueCloud Backup Task Screen.
Each task on the widget shows four icons for various functions:
Edit TrueCloud Backup Task screen populated with with the settings for that task.
Edit opens theplay_arrow Run Now starts and runs the backup task outside of the scheduled time.
visibility View Details opens the TrueCloud Backup Tasks screen that lists backup tasks configured on the system. Click on a task to see details for the selected task.
Delete opens a confirmation dialog before the system deletes the task.
State shows the status of the previous or current task. Possible status indications are:
- SUCCESS for completed tasks.
- FAILED if the task fails to complete.
- RUNNING for tasks in progress. 8 N/A for scheduled tasks before they run.
The state oval opens the Logs dialog for that task. Download Logs saves a copy of the current task logs.
The TrueCloud Backup Tasks screen lists all tasks configured on the system. The TrueCloud Backup Tasks open_in_new on the widget title or visibility View Details on a task opens the TrueCloud Backup Tasks screen.
Task options perform the same functions as the icons on the widget:
Edit TrueCloud Backup Task screen populated with with the settings for that task.
Edit opens theplay_arrow Run Now starts and runs the backup task outside of the scheduled time.
Delete opens a confirmation dialog before the system deletes the task.
Select any task to see details for the configured task, such as the schedule, path to the dataset or directories, snapshots, and other task options.
The Snapshots widget lists existing TrueCloud snapshots for the selected backup task. It contains options to restore from or delete an existing snapshot.
history Restore opens the Restore from Snapshot screen.
Delete opens a confirmation dialog before the system deletes the snapshot.
The Restore from Snapshot screen shows the date and time of the selected snapshot. It shows Remote and Local configuration options to restore the TrueCloud snapshot.
Remote Settings specify all data in the backup or exclude some data from a restoration. Additional settings show depending on the Include/Exclude selection.
Settings | Description |
---|---|
Include Everything | Select to restore all backed-up data from the remote snapshot to the selected local path. |
Include from subfolder | Select to restore data from a subfolder within the backed-up data. |
Subfolder | Shows when Include from subfolder is selected. Enter or browse to the subfolder within the snapshot to restore data from. |
Included Paths | Shows when Include from subfolder is selected. Select files and directories to include from the backup. Leave empty to include everything in the selected subfolder. |
Select paths to exclude | Select to exclude only certain paths from the data to restore. |
Excluded Paths | Shows when Select paths to exclude is selected. Enter or select files and directories to exclude from the backup. Select as many checkboxes as you want to select multiple paths or separate multiple entries with a comma. |
Exclude by pattern | Select to exclude files and directories matching defined glob patterns. |
Pattern | Shows when Exclude by pattern is selected. |
Use Local settings to select the target mount point on the current (local) system where files are restored. Be cautious with setting the restore target to avoid overwriting existing files.
Target enter the path to the dataset or directory or browse to the location to populate the field with the local directory where files are restored.
create_new_folder Create Dataset opens a dialog to name and create a new dataset at the selected target.
Save starts restoring data from the snapshot.
The Add TrueCloud Backup Task and Edit TrueCloud Backup Task screens contain options to configure a new backup task. The edit screen opens populated with the existing task settings. Each screen shows the Local, Remote, Task Settings, and Control basic settings. The Advanced and Advanced Remote Options are for use by advanced users.
Local settings allow selecting the dataset or directory to use in the task. Selecting the dataset populates the Source Path field.
Settings | Description |
---|---|
Source Path | Enter or browse to the path of the dataset or directory with the data to send to the cloud backup provider used in the task. Click the | arrow to the left of the /mnt folder to expand and show datasets and directories within that folder. This is the dataset or directory location with the data the TrueCloud backup task sends to the cloud storage provider. Click the arrow to the left of the /mnt folder again to collapse the directory tree.
The Remote settings specify the TrueCloud credential and destination storage locations.
Settings | Description |
---|---|
Credential | Select an existing Storj iX credential from the dropdown list. TrueNAS automatically validates the selected credential. Select Add New to open the Cloud Credentials screen. This is the same configuration screen that opens when you click Add on the Credentials > Backup Credentials screen. |
Bucket | Displays after selecting the Storj credential. Select a pre-configured Storj bucket. Only TrueNAS compatible Storj buckets are selectable. Select Add New to create a new Storj bucket from the TrueNAS UI. |
New Bucket Name | Displays when Add New is selected in the Bucket field. Enter the name for the new bucket. Only lowercase letters, numbers, and hyphens are allowed. |
Folder | Enter or browse to the dataset or directory to receive the backed-up data. Click the Enter /name , where name is a folder that does not exist, to create a new folder in the bucket. | arrow to the left of the folder icon and at each dataset or directory to reach the storage location to use for this task.
Task Settings specify the task name, snapshot retention policy, and password for the backup repository.
Settings | Description |
---|---|
Name | Enter a name for the TrueCloud backup task. |
Keep Last | Enter a number of past snapshot copies to retain before removing older snapshots. |
Password | Enter a password for the backup repository. Record this password in a secure location. Required to recreate the task using the same bucket/folder, such as in a new TrueNAS install or system, or to restore data from the existing snapshots in another TrueNAS system. |
Control settings establish a schedule for when to run the backup task.
Settings | Description |
---|---|
Schedule | Select a schedule preset or choose Custom to open the advanced scheduler. |
Enabled | Select to enable the TrueCloud task. Leave clear to disable the task without deleting it and keep the configuration available without allowing the specified schedule to run the task. The toggle in the Enable column on the TrueCloud Backup Tasks widget enables/disables the task. |
Advanced Options settings are intended for use by advanced users.
Settings | Description |
---|---|
Take Snapshot | Select to take a snapshot before transferring data to the specified cloud provider like Storj. This option is not available to datasets with child datasets. |
Pre-Script | (For advanced users only) Enter a script to execute before running the task. See the Managing TrueCloud Backup Tasks tutorial for more information. |
Post-Script | (For advanced users only) Enter a script to execute after running the task. See the Managing TrueCloud Backup Tasks tutorial for more information. |
Exclude | Enter a list of files and directories to exclude from the backup. Separate entries by pressing Enter. See rclone filtering for more details about the --exclude option and proper syntax. |
Advanced Remote Options settings are intended for use by advanced users.
Settings | Description |
---|---|
Transfers | Enter the number of simultaneous file transfers to allow. Base the number on the available bandwidth and destination system performance. See rclone –transfers. |
Bandwidth limit | Enter a single bandwidth limit or bandwidth limit schedule in rclone format. Separate entries by pressing <kbdEnter. Example: 08:00,512 12:00,10MB 13:00,512 18:00,30MB 23:00,off. You can specify units with the beginning letter b, k (default), M, or G. See rclone –bwlimit. |