Backup & Restore
|
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:
-
Stop the ADCM container:
$ sudo docker stop adcm -
Go to the container directory (by default, /opt/adcm):
$ cd /opt/adcm -
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 ./ -
Start the ADCM container:
$ sudo docker start adcm
Restore
To perform restore, you have to do the following:
-
Stop the ADCM container:
$ sudo docker stop adcm -
Create a new directory:
$ sudo mkdir /opt/adcm-restored -
Go to the created directory:
$ cd /opt/adcm-restored -
Restore data from the previously created backup to the new directory:
$ sudo tar xvf ~/backup.tar.gz -
Remove the current ADCM container:
$ sudo docker container rm adcmNOTEIf you do not need to reuse the
adcmcontainer name, you can skip the current step and use another container name instead ofadcmin the next steps. -
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. -
Start the new ADCM container:
$ sudo docker start adcm