-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatic / periodical backups #477
Comments
Hi, i would like to try implement this feature, could you assign it to me @louislam ? Also this is one of my first contributions do you have some specific advice beyond the contribution file? |
Thank you so much! But I would not recommend to implement this in the current stage, because the backup is done via the frontend in the current implementation, which means that you have to rewrite the backup feature in backend before you start to implement this feature. I don't think it is an easy task. Also, as most Uptime Kuma users are able to access the machine, using any existing backup tools such as rsync/zip/cron is more reliable and flexible in my opinion. |
If you are using docker you can backup the volume with the data periodically using the offen/docker-volume-backup image. It can take care of writing to remote storage, pruning old back-ups and sending notifications in case of backup failure. The full compose file would look something like: version: '3'
services:
uptime:
container_name: uptime
image: louislam/uptime-kuma:1
volumes:
- uptime-kuma:/app/data
environment:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
labels:
- docker-volume-backup.stop-during-backup=true
restart: always
backup-kuma:
container_name: backup-kuma
image: offen/docker-volume-backup:v2.27.0
restart: always
env_file: ./.backup.env
volumes:
- uptime-kuma:/backup/uptime-kuma_mount:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /home/user/backups:/archive
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro With the
Above example would backup the volume No affiliation, just a happy user of the volume-backup image. |
Allow making backups automatically, saving to a specified local storage directory.
Cleanup may be left to the user or implemented with 'keep last n backups'.
The text was updated successfully, but these errors were encountered: