TrueNAS Documentation Archive
This content follows the TrueNAS 23.10 (Cobia) releases. Archival documentation is provided for reference only and not actively maintained. Use the Product and Version selectors above to view content specific to different TrueNAS software or major version.
Snapshot (Task)
11 minute read.
Last Modified 2024-03-19 08:38 EDTThe SCALE CLI guide is a work in progress! New namespace and command documentation is continually added and maintained, so check back here often to see what is new!
The snapshot namespace has 11 commands and is based on snapshot creation and management functions found in the SCALE API and web UI. It provides access to periodic snapshot task methods through the snapshot commands.
The following snapshot commands allow you to create new and manage existing periodic snapshot tasks.
You can enter commands from the main CLI prompt or from the task snapshot namespace prompt.
Enter the
--
flag following any CLI command to open the interactive arguments editor text-based user interface (TUI).
The create
command creates a periodic snapshot task for a given dataset at the specified schedule.
The delete
command deletes a snapshot task matching the ID entered.
Use the query
command to locate the snapshot task ID.
To disable a task but not delete it, use the update
command enable=false
property argument.
The delete_will_change_retention_for
command returns a list of snapshots that have their retention influenced by deleting a given snapshot.
Use this command before the delete
command to verify other snapshot tasks on the system that might be adversely affected.
The forseen_count
command returns a list of snapshots that change the retention of the periodic snapshot task for the ID specified.
The TrueNAS CLI guide for SCALE is a work in progress! This command has not been fully tested and validated. Full documentation is still being developed. Check back for updated information.
The get_instance
command retrieves information for a snapshot task matching the id
entered in the command string.
Use to verify properties for the snapshot.
Use the query
command to find the list of snapshots and the ID for a snapshot task.
The max_count
command returns the maximum number of snapshots per dataset the system can sustain.
The max_total_count
command returns the maximum number of snapshots the system can sustain.
The query
command returns a table (dictionary) of all snapshot tasks on the system.
The run
command starts the snapshot task for the task ID entered.
Use the query
command to locate the snapshot task ID.
The update
command updates the task matching the task ID entered.
Use the query
command to find the list of snapshot tasks and the task ID.
Use the get_instance
command to list the properties of the task ID before and after making changes to verify the task configuration.
The TrueNAS CLI guide for SCALE is a work in progress! This command has not been fully tested and validated. Full documentation is still being developed. Check back for updated information.
The update_will_change_retention_for
command returns a list of snapshots that have their retention influenced by deleting a given snapshot.
The TrueNAS CLI guide for SCALE is a work in progress! This command has not been fully tested and validated. Full documentation is still being developed. Check back for updated information.