Mysql Backup Taking up Space on Local Machine #530
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#530
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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
I am trying to properly backup my MySQL (MariaDB) database without taking up space on my local machine.
Steps to reproduce (if a bug)
It's likely that my configuration file is just wrong, but I haven't been able to find anything online:
Actual behavior (if a bug)
My database VM ran out of space a few nights ago. The MySQL dump to /root/.borgmatic/mysql_databases/ seems to be taking up space on my local machine rather than piping directly to the repository.
Expected behavior (if a bug)
I expect the MySQL dump to not take up space on my local machine, instead it should be piped/streamed directly to the repository.
Environment
borgmatic version: 1.5.1
borgmatic installation method: Ubuntu package & Python3/PIP
Borg version: borg 1.1.15
Python version: Python 3.8.10
Database version (if applicable): mysql Ver 15.1 Distrib 10.3.34-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
operating system and version: Ubuntu 20.04.3 LTS
Mysql Backup Taking up Space on Local Machine & Not Dumping Correctlyto Mysql Backup Taking up Space on Local MachineThanks for filing this and providing the detailed info. The reason this isn't working is because the streaming database feature wasn't yet implemented in the version of borgmatic you're using! It was first introduced in borgmatic 1.5.3. So you'll need to upgrade borgmatic to take advantage of it. If you can, I recommend upgrading to the newest release (1.6.0 right now). The documentation mentions different ways of installing borgmatic that may help you get a newer version. (I'll also update the borgmatic documentation to mention the version requirement.)
Let me know if that works for you!
Thanks, upgrading to the newest release resolved the issue!
Awesome, glad to hear it!