lsbackups
Use the lsbackups command to display the backups for a specified session and role.
Syntax
Parameters
- -help | -h | -?
- Lists help for the command. If you specify additional parameters and arguments, those parameters and arguments are ignored.
- -s
- Displays default information, including the source and target LSS and the type of port configuration.
- -l
- Displays detailed information for each port, including:
Column label Details Backup ID Identification for the backup Backup Time Timestamp for when the backup was taken Session Name The name of the session Role The name of the role backed up isRecoverable Whether the backup is considered recoverable Progress Percent of the backup left to copy to the backup capacity Used Capacity Capacity used for each backup Last Result The last result of the backup Copy Sets The number of copysets in the backup Blocking Expansion Whether the backup is blocking expansion for one or more volumes Expiration Expiration time for backup (Storage Virtualize volumes only) - -fmt { default | xml | delim | stanza }
- Specifies the format of the output. You can specify one of these values:
- default
- Specifies that the output is displayed in tabular format using spaces as delimiters between columns. This is the default value.
- xml
- Specifies that the output is displayed in XML format.
- delim
- Specifies that output is displayed in a tabular format using commas as delimiters between columns.
- stanza
- Specifies that the output is displayed as one keyword-value pair per line.
- -p { on | off }
- Specifies whether to display one page of text at a time or all text at once.
- on
- Displays one page of text at a time. Pressing any key displays the next page. This is the default value when the command is run in interactive mode.
- off
- Displays all text at once. This is the default value when the command is run in single-shot mode.
- -hdr { on | off }
- Specifies whether to display the table header. You can specify one of these values:
- on
- Displays the table header. This is the default value.
- off
- Hides the table header.
- -v { on | off }
- Specifies whether to enable verbose mode. You can specify one of these values:
- on
- Enables verbose mode.
- off
- Disables verbose mode. This is the default value.
- -backupid backup_ID
- Specifies the id number for the backup. This value is used to filter the list of backups returned. Only the backup with the given id number will be displayed.
- -role role_name
- Specifies that only backups that are associated with the specified role name are displayed.
- -session_name |-
- Specifies the name of the session used to display backups.
Example: Listing backups for a given session
The following command lists the backups used for a session named MyBackupSess and role H1.
csmcli> lsbackups -role h1 MyBackupSess
The following output is returned:
Backup Backup Session is Last Copy Blocking Progress Used Expiration ID Time Name Recoverable Result Sets Expansion Capacity ========================================================================================================================================= 47676786 2018-06-13 14:37:50.495-0500 MySafeGuard yes IWNRxxxI 5 yes 99% 6.7 KiB - 67676786 2018-06-12 14:37:50.495-0500 MySafeGuard yes IWNRxxxI 3 - 86.1 KiB - 77676786 2018-06-11 14:37:50.495-0500 MySafeGuard yes IWNRxxxI 3 - 4.2 KiB - 87676786 2018-06-10 14:37:50.495-0500 MySafeGuard no IWNRxxxE 3 - 1.2 KiB - 97676786 2018-06-09 14:37:50.495-0500 MySafeGuard yes IWNRxxxI 3 - 8.5 KiB -
