Backup all volumes described in docker-compose.yaml and restore them when needed.
-
git clonerepo. -
mvorcpfiles intodocker/. -
sudo chmod +x backup-volumes.sh. -
sudo chmod +x restore.sh.
./backup-volumes.shto create atar.gzfile with all the volume data.
./restore.sh filename.tar.gz, give a filename you want to restore from.
- Scripts must be inside
docker/folder, where yourdocker-compose.yamlfile is.
- Change
backupFileNameaccording to your volume name, in our case we had only one postgress volume.