-
-
Notifications
You must be signed in to change notification settings - Fork 452
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
Create Backup guide #194
Comments
I would also like to make it so you could backup the Prometheus data as well, from the configured Docker volume. |
You could mount that Your script could |
You could query out the data from grafana externally using the built-in API. replace the IP address (here as 192.168.88.185) with the IP of your Pi. |
Another simple example, is just to store all data that you want to easily backup into a volume, and then you can easily script the export of those volumes through another temporary container that you spin up just for the purposes of data-exporting. https://docs.docker.com/storage/volumes/#backup-restore-or-migrate-data-volumes |
Another way would be to map all volumes you want to backup to your host and then use a dedicated backup client container like duplicati https://hub.docker.com/r/duplicati/duplicati/ to manage your backup. |
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution! Please read this blog post to see the reasons why I mark issues as stale. |
1 similar comment
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution! Please read this blog post to see the reasons why I mark issues as stale. |
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details. |
@geerlingguy it looks like Prometheus has the ability to create snapshots for backup but you need the admin api enabled https://prometheus.io/docs/prometheus/latest/querying/api/#snapshot. How can we do that through the configuration? Was using this to back up grafana to s3 https://github.com/ysde/grafana-backup-tool, just need the data now to complete it i think. |
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution! Please read this blog post to see the reasons why I mark issues as stale. |
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details. |
See #7.
For backup for Pi-hole at least, in the GUI you can go to Settings > Teleporter and click 'Backup'. To automate it through the console, you can run
pihole -a -t
(can I integrate it with something like mygeerlingguy.backup
role?).If I run
docker-compose exec pihole /bin/bash pihole -a -t
it exports a file inside the container.docker-compose cp
is not a supported command yet (see docker/compose#3593), so will have to figure out the best way of scripting this... maybe something like:/backup
directory inside the container (mkdir -p /backup
).pihole -a -t
command inside the/backup
directory./backup/[latest-file-with-extension].tar.gz
and pipe them to file on host./backup
directory (rm -rf /backup/*
).It would be convenient for the
pihole -a -t
command to have an option to output the archive to shell instead of into a file, that would save the whole file-based annoying process.The text was updated successfully, but these errors were encountered: