Use Backup gem to backup docker volume.
Pull the latest version of the image from the docker index. This is the recommended method of installation as it is easier to update image in the future.
docker pull siuying/backup:latest
Alternately you can build the image yourself.
git clone https://github.com/siuying/docker-backup.git cd docker-backup docker build -t="$USER/backup" .
- Add volume where you want to backup
- Add your models with backup logic to
- Have fun!
Check fig.yml for more details.