Slurp’it has a build-in Backup & Restore function. Schedule a interval or even do manual backup & restores.
Step by step guide
Setup the volumes
slurpit-warehouse:
volumes:
slurpit-portal:
volumes:
Configure backup interval
Backups are made daily at midnight, backups are kept for the last 7 days and 1 for the last 32 weeks
by default. Backups are stored in the /backup/files. These settings can be changed using the following docker compose settings:
PORTAL_BACKUP, default true
PORTAL_BACKUP_DAYS, default 7
PORTAL_BACKUP_WEEKS, default 32
WAREHOUSE_BACKUP, default true
WAREHOUSE_BACKUP_DAYS, default 7
WAREHOUSE_BACKUP_WEEKS, default 32
If you are constantly running out of disk space, you might want to consider lowering these settings.
slurpit-warehouse:
environment:
WAREHOUSE_BACKUP: true
WAREHOUSE_BACKUP_DAYS: 7
WAREHOUSE_BACKUP_WEEKS: 32
slurpit-portal:
environment:
PORTAL_BACKUP: true
PORTAL_BACKUP_DAYS: 7
PORTAL_BACKUP_WEEKS: 32
- To manually create a backup you can run /backup/backup.sh
- To for example restore the backup from January first 2024 run: /backup/restore.sh 20240101
or you can use the docker commands:
docker exec slurpit-portal sh /backup/backup.sh
docker exec slurpit-warehouse sh /backup/backup.sh
docker exec slurpit-portal sh /backup/restore.sh 20241017
docker exec slurpit-warehouse sh /backup/restore.sh 20241017
Usage video
To make it easier, we also a video about the steps.