TrueNAS SCALE Version DocumentationThis content follows the TrueNAS SCALE 23.10 (Cobia) releases. Use the Product and Version selectors above to view content specific to different TrueNAS software or major version.
Snapshot
8 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 10 commands, and is based on snapshot creation and management functions found in the SCALE API and web UI. It provides access to storage snapshot methods through the snapshot commands.
The following snapshot commands allow you to create new snapshots and manage existing snapshots.
You can enter commands from the main CLI prompt or from the snapshot namespace prompt.
Enter the
--
flag following any CLI command to open the interactive arguments editor text-based user interface (TUI).
The clone
command clones an existing snapshot to a new dataset.
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 create
command takes a snapshot of a given dataset.
The delete
command deletes a snapshot matching the ID entered.
Use the query
command to locate the snapshot ID.
The get_instance
command retrieves information for a snapshot 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.
The hold
command holds a snapshot matching the ID entered. Holding a snapshot prevents it from being deleted.
Use the query
command to locate the snapshot ID.
Use the release
command to unlock the snapshot to remove the hold on the snapshot.
The query
command returns a table (dictionary) of all snapshots on the system.
The release
command removes the hold on a snapshot allowing it to be deleted.
Use the query
command to locate the snapshot ID.
The remove
command removes a snapshot from a given dataset.
Use the query
command to locate the snapshot ID.
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 rollback
command replaces data in the specified dataset with the information saved in the snapshot matching the ID entered.
Use the query
command to locate the snapshot ID.
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.