# Return to the knowledge base
Category

Backup & Restore

Step by step guide

Setup the volumes

slurpit-warehouse:

    volumes:

      – ./backup/warehouse:/backup/files

slurpit-portal:

    volumes:

      – ./backup/portal:/backup/files

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.

 

Example configuration

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

Manually trigger backup

  • 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

After you restore the backup you need to restart the container, because there is a chance that the database is missing changelogs, which run at the start.

Usage video

To make it easier, we also a video about the steps.

Would you like a hands-on session?

A couple times a week our in-house trainer is available for a private or group session. In this session we can cover our Slurp'it or Mock'it solution but also integrations with Netpicker, NetBox, Nautobot & Infrahub.

Yes, keep me informed

Connect with us on LinkedIn to stay updated on the latest happenings, news, and exciting developments at Slurp’it. Just click the button below to follow us and be a part of our professional network.

Newsletter