6.4.2.5. Backup and restore

Configuration and log files

You can find more information and examples on Docker volumes (such as backup/restore) here: Docker volumes

All configuration and log files for Airlock IAM will be stored in a Docker volume:

copy
airlock-docker-cli volume create iam-config
airlock-docker-cli volume ls

Backup

copy
airlock-docker-cli run --rm --mount source=iam-config,target=/home/airlock/iam -i --entrypoint /bin/tar airlock-iam:7.6 -cv -f - /home/airlock/iam/ > iam-backup.tar

Restore

copy
cat iam-backup.tar | airlock-docker-cli run --rm --mount source=iam-config,target=/home/airlock/iam -i --entrypoint /bin/tar airlock-iam:7.6 -xv -C / -f -