Skip to content

imato23/sauf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

S.A.U.F.

Docker

Introduction

An application for private wine cellar management

Deployment

Change to the directory with docker compose config.

cd /home/thomas/tools/sauf

Pull the latest images

docker-compose pull

Restart containers with new images

docker-compose up -d --remove-orphans

Backup and Restore

Backup

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.

Restore

  1. Copy the sauf-mongo-archive file from urbackup Backup to /var/backups/sauf/sauf-mongo.archive
  2. 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 

About

Application for private wine cellar management

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published