powervc-opsmgr backup and restore command
Purpose
Perform a backup and restore of PowerVC configuration and data.
Note: The backup file must to be saved in the following folder location:
/powervchome/backups.
Syntax
Backup
powervc-opsmgr backup [-h] [-s] [-c <cluster_name>] [-b BACKUP_ROTATION] [-v]Restore
powervc-opsmgr restore [-h] -c <cluster_name> [-s] [--skip_remote_host] [-v]Note: Specify
[--skip_remote_host] to skip the migration of the remote host. You can migrate
the required controllers and after the migration is completed successfully, you can migrate the
remote hosts.
Description
The powervc-opsmgr backup command is used to create a backup of the PowerVC configuration and associated data. The
powervc-opsmgr restore command is used to restore the configuration from a
previously created backup.
Flags
| Item | Description |
|---|---|
| -h or --help | Specifies the help message and exit. |
| -c cluster_name or --cluster cluster_name | Specifies the name of the cluster and operating system users to backup. |
| -s or --silent | Silently backup or restore data without standard logging. |
| -b backup_rotation or --backup-rotation backup_rotation | Specifies total number of backup files. |
| -v or --verbose | Enables verbose output for debugging or detailed logging. |
| Item | Description |
|---|---|
| -h or --help | Specifies the help message and exit. |
| -c cluster_name or --cluster cluster_name | Specifies the name of the cluster and operating system users to restore. |
| -s or --silent | Silently restore data without standard logging. |
| --skip_remote_host | Specify to skip migration to remote host. |
| --skip_os_restore_user | Specify to skip restoring the operating system users. |
| -v or --verbose | Enables verbose output for debugging or detailed logging. |
Note:
- Starting from PowerVC appliance version 2.3.3, the backup and restore of operating system users is supported. Restored operating system users retain the same group assignments and account expiry settings as in the backup system. All restored users are created with the default password abcd1234. You should change the default password immediately using the chpvcuser Command.
- When you run the command
powervc-opsmgr backup -c <clustername>orpowervc-opsmgr restore -c <clustername>a health check is performed before initiating the backup or restore operation. If the health check is not completed successfully, the operation is not initiated. You must address the issue before attempting to run the command again. For backup operation, the health check is performed during every instance when the command is executed. - Starting PowerVC 2.3.3, a new check for LDAP validation is introduced for backup and restore operation.
- Starting PowerVC 2.3.3, a new check for keysize validation is introduced for restore operation.