Go to main content
Oracle® ZFS Storage Appliance Administration Guide, Release OS8.7.0

Exit Print View

Updated: July 2017
 
 

Renaming a Snapshot (CLI)

Use the following procedure to rename an existing manual snapshot. Automatic snapshots cannot be renamed.

If a share snapshot that is part of a larger project snapshot is renamed, it will no longer be considered part of the same snapshot, and if any snapshot is renamed to have the same name as a snapshot in the parent project, it will be treated as part of the project snapshot.

Before You Begin

  • To complete this procedure, you must have Super-User privileges or one of the following role authorizations within the projects and shares scope:

    • renameSnap - Allows renaming snapshots.

    • rename - Allows renaming projects and shares, including snapshot names.

  • To add authorizations to a role, see Editing Authorizations for a Role (CLI).

  1. Go to shares and select the project, or select the project and then a share.
    hostname:> shares select myproject
    hostname:shares myproject> select demo_share
  2. Enter snapshots.
    hostname:shares myproject/demo_share> snapshots
  3. Enter list to view the list of snapshots for the project or share.
    hostname:shares myproject/demo_share snapshots> list
    demo_snap1
    demo_snap2
  4. To rename the snapshot, enter rename followed by the current snapshot name, a space, and then the new snapshot name.

    A name must consist of 1 to 64 characters, but not include spaces or begin with a period. Allowable characters are: alphanumeric and special characters _ - . :

    hostname:shares myproject/demo_share snapshots> rename demo_snap1 new_name

Related Topics