Search This Blog

Tuesday, January 9, 2024

Backing & Restore Maximo Manage namespace with a script

1)  Use the manage-backup-restore.sh script to back up the Maximo Manage namespace.

Run the following command to back up the Maximo Manage namespace.

  • manage-backup- restore.sh -w <mas-workspace-id> -i <MAS_INSTANCE_ID> -f <BACKUP_FOLDER> -m backup 

 
-w, --mas-workspace-id
The Maximo Manage workspace ID that you are backing up.
-i, --mas-instance-id
The Maximo Application Suite instance ID that you are backing up.
-f, --backup-folder
The folder where the backup artifacts are written to.
-m, --mode
Indicates whether to backup or restore. Use the value restore.
  • manage-backup-restore.sh -w <mas-workspace-id> -i dev -f ./ -m backup

 Reference Link : https://www.ibm.com/docs/en/mas-cd/continuous-delivery?topic=namespace-backing-up-maximo-manage-script&mhsrc=ibmsearch_a&mhq=MAS%20backup%20and%20restore


2) Restore your backed up Maximo Manage namespace manually or by using the manage-backup-restore.sh script.

To restore manually, use the oc cli command to restore the resources that you backed up.

The command applies the configuration that is specified in the file that is provided. Run the command for each *.yaml file that you created when you did the backup.

    • oc apply -f <filename>

To restore the Maximo Manage namespace by using the manage-backup-restore.sh script, run the following command.

    • manage-backup-restore.sh -w <mas-workspace-id> -i <MAS_INSTANCE_ID> -f <BACKUP_FOLDER> -m restore
    • manage-backup-restore.sh -w <mas-workspace-id> -i dev -f ./ -m restore 
The script runs the oc apply command on all the *.yaml files in a specified folder, which restores the files.

No comments:

Post a Comment

Error 'Unable to connect to server' is displayed when you run a task that prompts for server restart

  Problem On Windows system, when you select a task that requires a server restart in Administration Services UI, and run that task, the tas...