An application for private wine cellar management
cd /home/thomas/tools/sauf
docker-compose pull
docker-compose up -d --remove-orphans
Execute the following script. It will dump the sauf MongoDB collection and store it to /var/backups/sauf/sauf-mongo.archive
docker exec sauf-mongo sh -c 'exec mongodump -d sauf --archive' > /var/backups/sauf/sauf-mongo.archive
UrBackup will backup all files in the folder /var/backups
regularly.
- Copy the sauf-mongo-archive file from urbackup Backup to
/var/backups/sauf/sauf-mongo.archive
- Execute the following script to restore the archive file to the MongoDB in the sauf-mongo container
docker exec -i sauf-mongo sh -c 'mongorestore --archive' < /var/backups/sauf/sauf-mongo.archive