-
Notifications
You must be signed in to change notification settings - Fork 185
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
Simple script for moving to target backup by year and month #326
Comments
It is rather simple and elegant. I would be happy to add it. I have a few questions:
|
Also, have you looked at the Custom backup file name option? |
Hi @deitch
|
Yes, I know. That fix just went through a few hours ago. Try the most recent, either
Yes, that probably is it. I will get a fix in the next day or so. |
Did you try the custom backup filename option? |
The more I think about it, the less I understand how to use the example. There are two renaming options: source and target. The process is:
SourceSource renaming lets you change the name of the temporary file, i.e. the output from the actual dump. That file is temporary, and has no meaning beyond the current dump. The name - default or what you change it to - will be ignored. The only real value it has is if you want to append some data to the file, encrypt it, change it somehow. From mysqlbackup's perspective, it doesn't know or care. It just sees those 2 stages - dump and upload - and lets you change the value of it in the middle. TargetTarget doesn't do anything, ignores any local activity. The only thing it does is change what the remote name would be. So if it was "foo.tgz" by default and you want it to be "bar.tgz", mysqlbackup says, "ok, sure, I will call it that name when I push it in stage 2." I am not convinced a script is necessary for it, but even if it is, how does knowing the target help? More to the point, making directories and such will not do anything. |
Hi team. Here is a simple script for moving target backup to a new directory by year and month:
File
/scripts.d/target.sh
:Could you please check this script and add to repo as sample and to docker hub page?
It's a simple solution, but I can't find this example. Maybe it will be helpful.
The text was updated successfully, but these errors were encountered: