MAS DevOps Ansible Collection Ansible CLI
Home Roles: Suite Mgmt suite_backup Overview Role Variables Backup Operations Example Playbook License

suite_backup¤

Backup MAS Core

Overview¤

This role supports backing up MAS Core namespace resources and supporting resources in other namespaces; supports creating on-demand full backups.

Important

Supported only for MAS 9.1.x.

Backup can only be restored to an instance with the same MAS instance ID.

Role Variables¤

Variable Required Default
mas_instance_id Yes None
mas_backup_dir Yes None
suite_backup_version No YYYYMMDD-HHMMSS timestamp
include_sls No true
include_dro No true

Backup Target and Version¤

mas_instance_id¤

The instance ID of the Maximo Application Suite installation to backup.

  • Required
  • Environment Variable: MAS_INSTANCE_ID
  • Default: None

mas_backup_dir¤

The local directory path where backup files will be stored, for example /tmp/mas_backups.

  • Required
  • Environment Variable: MAS_BACKUP_DIR
  • Default: None

suite_backup_version¤

Set a version to override the default YYYYMMDD-HHMMSS timestamp version used in the name of the backup file, for example 20260116-130937.

  • Optional
  • Environment Variable: SUITE_BACKUP_VERSION
  • Default: YYYYMMDD-HHMMSS timestamp

Backup Content¤

include_sls¤

Controls whether to include the Suite SLS (Suite License Service) configuration in the backup archive.

  • Optional
  • Environment Variable: INCLUDE_SLS
  • Default: true

If you plan to install a new SLS in any recovery action then you should set this to false.

include_dro¤

Controls whether to include the Suite DRO configuration in the backup archive.

  • Optional
  • Environment Variable: INCLUDE_DRO
  • Default: true

If you plan to install a new DRO in any recovery action then you should set this to false.

Backup Operations¤


This section provides comprehensive information about MAS Core backup operations.

Overview¤

The MAS Core backup operation creates a comprehensive backup of your MAS Core installation, including all namespace resources and supporting resources in other namespaces. This backup can be restored using the suite_restore role.

Important: Backup can only be restored to an instance with the same MAS instance ID.

What Gets Backed Up¤

The MAS Core backup operation captures all critical resources needed to restore a complete MAS Core instance:

Core Namespace Resources (mas-{instance-id}-core):

  • Projects/Namespaces: The MAS Core namespace
  • Secrets:
  • Superuser credentials ({instance-id}-credentials-superuser)
  • IBM entitlement key (ibm-entitlement)
  • Public certificates ({instance-id}-cert-public)
  • All auto-discovered secrets referenced by other resources
  • Operator Resources:
  • Subscription (ibm-mas)
  • OperatorGroup
  • Certificate Manager Resources:
  • Certificates (with label mas.ibm.com/instanceId={instance-id})
  • MAS Addon Resources (addons.mas.ibm.com):
  • MVIEdge
  • ReplicaDB
  • GenericAddon
  • MAS Core Resources (core.mas.ibm.com):
  • Suite CR
  • Workspace CRs
  • MAS Internal Resources (internal.mas.ibm.com):
  • CoreIDP
  • MAS Configuration Resources (config.mas.ibm.com):
  • IDPCfg, JdbcCfg, KafkaCfg, McpiCfg, MongoCfg
  • ObjectStorageCfg, PushNotificationCfg, ScimCfg
  • SmtpCfg, WatsonStudioCfg
  • AppCfg (MAS 9.1 and later only)
  • AiCfg (MAS 9.2 and later only)
  • BasCfg (if include_dro is true)
  • SlsCfg (if include_sls is true)

The MAS version is auto-detected from the installed ibm-mas operator subscription channel, and version-specific resource kinds (AppCfg, AiCfg) are only included in the backup when the installed MAS version defines them.

Certificate Manager Resources:

  • ClusterIssuers:
  • Public cluster issuer (detected automatically)
  • mas-{instance-id}-core-internal-issuer
  • mas-{instance-id}-ca
  • Issuers (in cert-manager namespace):
  • mas-{instance-id}-core-internal-ca-issuer
  • mas-{instance-id}-core-public-ca-issuer
  • Certificates (in cert-manager namespace):
  • {instance-id}-cert-internal-ca
  • {instance-id}-cert-public-ca

Backup Process¤

The MAS Core backup operation performs the following steps:

  1. Validation: Verifies required variables (mas_instance_id, mas_backup_dir)
  2. Version Generation: Creates or uses provided backup version identifier
  3. Certificate Manager Detection: Detects the Certificate Manager installation and namespace
  4. Cluster Issuer Detection: Identifies the public cluster issuer in use
  5. MAS Version Detection: Detects the installed MAS version from the ibm-mas subscription channel
  6. Resource Discovery: Identifies all MAS Core resources and auto-discovers referenced secrets
  7. Backup Execution: Exports all resources to YAML files in the backup directory
  8. Verification: Reports backup statistics and any failures

Backup Directory Structure:

{mas_backup_dir}/
└── backup-{version}-suite/
    └── resources/
        ├── projects/
        ├── secrets/
        ├── configmaps/
        ├── subscriptions/
        ├── operatorgroups/
        ├── clusterissuers/
        ├── issuers/
        ├── certificates/
        ├── mviedges/
        ├── replicadbs/
        ├── genericaddons/
        ├── suites/
        ├── workspaces/
        ├── coreidps/
        ├── appcfgs/
        ├── idpcfgs/
        ├── jdbccfgs/
        ├── kafkacfgs/
        ├── mcpicfgs/
        ├── mongocfgs/
        ├── objectstoragecfgs/
        ├── pushnotificationcfgs/
        ├── scimcfgs/
        ├── smtpcfgs/
        ├── watsonstudiocfgs/
        ├── bascfgs/ (if include_dro is true)
        └── slscfgs/ (if include_sls is true)

Important Considerations¤

Instance ID Requirement:

  • Backup can only be restored to an instance with the same MAS instance ID
  • The instance ID is embedded in resource names and cannot be changed during restore

Storage Requirements:

  • Ensure sufficient storage in the backup directory
  • Backup directory structure: {mas_backup_dir}/backup-{version}-suite/
  • Monitor disk space during backup operations

Security:

  • Backup files contain sensitive data including credentials and certificates
  • Secure backup directory with appropriate permissions (chmod 700 recommended)
  • Consider encrypting backups for long-term storage
  • Restrict access to backup files to authorized personnel only

SLS and DRO Configuration:

  • Use include_sls=false if you plan to install a new SLS during recovery
  • Use include_dro=false if you plan to install a new DRO during recovery
  • Default is true for both, which includes the configuration in the backup

Backup Best Practices¤

  1. Regular Backups: Schedule automated backups at regular intervals, especially before:
  2. MAS upgrades
  3. Configuration changes
  4. Application installations
  5. Cluster maintenance
  6. Test Restores: Periodically test restore procedures in non-production environments
  7. Monitor Operations: Implement monitoring and alerting for backup failures
  8. Backup Validation: Verify backup integrity after completion
  9. Retention Policy: Implement and document backup retention policies
  10. Disaster Recovery: Include MAS Core backup/restore in your DR plan
  11. Coordinate Backups: Coordinate MAS Core backups with:
  12. Database backups (MongoDB, Db2)
  13. SLS backups (if using separate SLS)
  14. DRO backups (if using separate DRO)
  15. Application-specific backups

Example Playbook¤

After installing the Ansible Collection you can include this role in your own custom playbooks.

- hosts: localhost
  vars:
    mas_instance_id: "{{ lookup('env', 'MAS_INSTANCE_ID') }}"
    mas_backup_dir: /tmp/mas_backups
    suite_backup_version: 20260116-130937
  roles:
    - ibm.mas_devops.suite_backup

License¤

EPL-2.0