Data Portal backup and restore
Create a Container to Access the Volume
You can create a temporary container to mount the volume and back it up.
docker run --rm -v mbda-data-portal_mbda_dataportal_database_data:/volume -v $(pwd):/backup busybox tar cvf /backup/volume_backup.tar /volume
Restore the Backup
To restore this backup to a volume, you can run the following command:
docker run --rm -v mbda-data-portal_mbda_dataportal_database_data:/volume -v $(pwd):/backup busybox tar xvf /backup/volume_backup.tar -C /
Comments
Post a Comment