Backup & Restore

Contents
IMPORTANT
If you are using an external database, you will need to make additional backups and restores on the side of that database.

Backup

To perform backup, you have to do the following:

  1. Stop the ADCM container:

    $ sudo docker stop adcm
  2. Go to the container directory (by default, /opt/adcm):

    $ cd /opt/adcm
  3. Create a backup for the container directory. The backup will be created in the home directory of the current user:

    $ sudo tar czvf ~/backup.tar.gz ./
  4. Start the ADCM container:

    $ sudo docker start adcm

Restore

To perform restore, you have to do the following:

  1. Stop the ADCM container:

    $ sudo docker stop adcm
  2. Create a new directory:

    $ sudo mkdir /opt/adcm-restored
  3. Go to the created directory:

    $ cd /opt/adcm-restored
  4. Restore data from the previously created backup to the new directory:

    $ sudo tar xvf ~/backup.tar.gz
  5. Remove the current ADCM container:

    $ sudo docker container rm adcm
    NOTE

    If you do not need to reuse the adcm container name, you can skip the current step and use another container name instead of adcm in the next steps.

  6. Create a new ADCM container (note that the /opt/adcm-restored directory is used instead of /opt/adcm):

    $ sudo docker create --name adcm -p 8000:8000 -v /opt/adcm-restored:/adcm/data hub.arenadata.io/adcm/adcm:<version>

    where <version> is a desired ADCM image version. You can use a version number equal to or greater than the one for which the backup was taken. It is not recommended to update ADCM more than 5 minor versions ahead. ADCM downgrade is not supported. For more information, see Upgrade.

  7. Start the new ADCM container:

    $ sudo docker start adcm
Found a mistake? Seleсt text and press Ctrl+Enter to report it