MySQL 'all' database not added to backup. #299
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#299
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?
Hello, I'm trying to setup borgmatic with a 'all' mysql_database dump.
Conf :
check:
Cron command used:
Relevant logs :
But then, when I try to extract :
I dont see any dump file/tmp/mysql file with
borg --list
either. But I dont understand why, I get the/tmp/borgmatic/mysql_databases/localhost/all
created fine.Environnement:
Any clue ?
Thanks for filing this and providing the detailed logs. Based on what you've included here, it sounds like something is going wrong with the the source directory paths that borgmatic passes
borg create
. So one thing that would be helpful is to get a look at theborg create
invocation that results from your borgmatic command:That would give me an idea if the source directory paths are incorrect, and whether it has anything to do with the custom
borgmatic_source_directory
. Thanks!Hello @witten, thanks for your time.
I restarted a new job and there is the log (could not upload it here) : https://framadrop.org/r/qBMe4eXNeQ#jS7+bZ4PYCnLFJibO+fQpS9t0oV7Ba6uLls1mMVD0/c=
I have deleted some fqdn names, you may see weird paths after /var/www
I also noticed something, it seems to see the
mysql_databases
folder in some way (I looked for/tmp/borgmatic/*
and it returns/tmp/borgmatic/mysql_databases
) :Well, looking at the log you attached, I don't see anything wrong with the
borg create
command:Which is a little mystifying, because with that invocation, I'd expect it to bundle up and include all the contents of
/tmp/borgmatic
including/tmp/borgmatic/mysql_databases
.One additional thing you can try is running the same
borgmatic
invocation with the new--files
flag included. That should give you a full accounting of absolutely every file that's included in the archive as it's added. I'd be interested to know: Is anything from/tmp/borgmatic
showing up in that output?I think what's going on here is that your shell is expanding
/tmp/borgmatic/*
to/tmp/borgmatic/mysql_databases
and passing that to borgmatic, which is in turn passing it to Borg, which is complaining that it doesn't match anything in the archive. So it's only seeing the folder as present on your host.. not in the archive. Because it's not present in the archive!@witten thanks for your insight, it seems indeed the shell was expanding (for
/tmp/borgmatic/mysql_databases
).I do not understand what you said about
the same borgmatic invocation with new --files flag included
, I did not succeded to find any--files
option with borgmatic or borg.But in the log I previously provided, we can see every file added to the archive (with the INFO log level), and I did not see any
/tmp/borgmatic
included... :(@witten My sincere appologies for your lost time...
I wake up this morning almost shouting "what a dumpfuck!!".
I had /tmp in my
exclude
file...Removed it and I was good... :(
No worries! I'm glad you figured it out, and that it was only a
/tmp
exclude.