Important
This is deprecated. We use this Restic Docker Container instead.
This script creates backups using restic
- restic backup (with the native support for all the different targets)
- clean and purge old backups
- healthcheck pings
- pre and post hooks to create database dumps
- create config files if not found
- initialize restic repo if not found
- daily logrotate (for 30 days)
start with /opt and create .exclude_from_backup in folders, that shouldn't be saved.
alternatively mount --bind /folder1 /folder2 or in /etc/fstab -- /folder1 /folder2 none bind to survive reboot
Beide ordner müssen existieren. der erste wird in den zweiten gemountet.
- rsync config files
- mount bind
- dump from local database
- dump from docker container