InfluxDB support #450
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'm trying to do and why
Backup InfluxDB databases
Other notes / implementation ideas
Heya, would it be possible in future to maybe support InfluxDB as one of the databases supported for backup?
Environment
Docker, latest borgmatic version
That would be cool! I haven't used InfluxDB though. Looks like
influxd backupandinfluxd restoremight be the way to do dump/restore from the command-line? Or maybeinflux_inspectandinflux -import?I will also mention that you can use the borgmatic hooks feature to do dumps and restores "manually" even for databases that borgmatic doesn't support natively.
Yupper!
My crappy script so far is as follows:
The "since" is something I'm still playing with.
The other option for a full backup is the "-portable" switch.
This backs up all of the databases.
For what it's worth I use hooks for backing up my influxdb databases.
@s1shed - you've given me a great idea.
I've forked a version of b3vis's Borgmatic and included docker-cli in it so I can run Docker commands.
I've done some internal tests, and all seems good, but we'll see what happens tonight!
Thank you for the idea!
Some movement on this! https://github.com/borgmatic-collective/borgmatic/pull/88
I would like to work on this issue. What remains to be implemented and what should I do as I can see a PR already for this issue??
You might check in with KiaraGrouwstra on the PR to see if they plan on continuing it. If not, then you can either pick up where they left off on a new PR or start anew (potentially with that PR for inspiration). And please let me know if you have any questions along the way!
@witten I checked with KiaraGrouwstra, and she has given me permission to take over this issue/PR. Her last update mentioned that the next step was running the tests, so I'll start from there because as far as I can see, she has made all changes asked by you in her code.
Great, thanks for checking. I haven't reviewed the most recent version of the code, but if it looks like a good starting place for you, then by all means use it!