Skip to content

Latest commit

 

History

History
29 lines (15 loc) · 676 Bytes

README.md

File metadata and controls

29 lines (15 loc) · 676 Bytes

docker-backup-restore

Backup all volumes described in docker-compose.yaml and restore them when needed.

Instructions:

  1. git clone repo.

  2. mv or cp files into docker/.

  3. sudo chmod +x backup-volumes.sh.

  4. sudo chmod +x restore.sh.

BackUp execution:

  • ./backup-volumes.sh to create a tar.gz file with all the volume data.

Restore execution:

  • ./restore.sh filename.tar.gz, give a filename you want to restore from.

NOTICE:

  • Scripts must be inside docker/ folder, where your docker-compose.yaml file is.

IMPORTANT:

  • Change backupFileName according to your volume name, in our case we had only one postgress volume.