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 ADCM container.
$ docker stop adcm
-
Create a backup volume (by default, /opt/adcm).
$ tar czvf ~/backup.tar.gz /opt/adcm
-
Start ADCM container.
$ docker start adcm
Restore
To perform restore, you have to do the following:
-
Create a restore volume (by default, /opt/adcm).
$ cd / $ tar xvf ~/backup.tar.gz
-
Install ADCM.
$ docker pull hub.arenadata.io/adcm/adcm:<version>
where
<version>
is a desired ADCM image version in one of the following formats:-
<major>.<minor>.<patch>
— if you need a specific ADCM patch. For example,2.0.0
. -
<major>.<minor>
— if you need the last patch within the selected ADCM version. For example,2.0
.
Note that before ADCM 2.0.0, the following format was used for versioning:
YYYY.MM.DD.HH
. -
-
Start ADCM.
$ docker create --name adcm -p 8000:8000 -v /opt/adcm:/adcm/data hub.arenadata.io/adcm/adcm:<version>