When you create a backup, AppCenter includes LDAP, system, user, and email configuration. It also includes apps, scripts, and jobs. Backups do not include service accounts. You must recreate the service accounts and assign them to the appropriate apps and scripts after you restore AppCenter.
- Log into AppCenter from the command-line interface.
Run the command appctl platform backup --name <backup-file-name> --encKey <backupencKey> --chart <path_chart_bundle> --download --set key1=val1, key2=val2 with the following considerations:
If backup was initiated successfully, a message similar to the following appears:
Parameter Consideration --name Required argument that specifies backup file name. --chart Required argument that specifies the path to the backup chart bundle (.tgz file). --encKey Optional flag that overwrites the default encryption key. --download Optional flag that downloads backup to a local /tmp file instead of to a remote file on the cluster. -f, --values valueFiles Optional flag that specifies values in YAML file to override chart defaults. You can specify multiple files with each -f flag. --set stringArray Optional flag that sets values on the command line. You can specify multiple or separate values with commas. For example:
Job: <job_name> initiated to take backup with name: backup-file-name.tar.gz.encr
[Optional] To show the status of all backups created during the lifetime of the current platform deployment, run the command appctl platform backup status --filterBy <Success,Failed,Running> with the following consideration:
Status information for all backups appears. For example:
Parameter Consideration --filterBy Optional flag that filters the backup status command output by the status specified. Status options include:
appctl platform backup status --filterBy Success
Job: <job1> started at <time-1> to take backup with name: <backup-1> has status: Success Job: <job2> started at <time-2> to take backup with name: <backup-2> has status: Failed Job: <job3> started at <time-3> to take backup with name: <backup-3> has status: Running