Hi,
I have a fresh install of zc155e and Backup MySQL v1.5c.
I'd like to alter Backup MySQL such that I can name my own files as I'm backing up.
MY PROPOSAL
I envision something like this:
If the "Name the file" box is left empty, Backup MySQL uses it's normal routine to automatically name the file. If the box is *not* empty, then auto routine is bypassed for whatever file name is given.
POSSIBLE PROBLEMS
#1. What if the file name already exists?
Maybe a quick check should occur, giving the user the option to overwrite or rename.
FAIL PROMPT: This file name already exists. Either rename the new file, or click "overwrite" to delete the existing file and replace it with this backup.
#2. What if the user puts in bad characters?
Users should be allowed only alphanumeric characters, plus hyphen and underscore, no spaces.
FAIL PROMPT: Your file name cannot contain spaces, only alphanumeric characters ( AbC123 ), hyphens ( - ), and underscores ( _ ).
THOUGHTS?
How hard would it be to do this? The two checks mentioned above would have to be added, but they seem simple enough. Personally, I don't need those. I'd be happy being careful not to use bad characters, and if I use the same name twice it will only be because I want to overwrite anyhow.
++++
EXPLANATION
When I'm doing intensive work on a site, I back up frequently. To keep up with all the backups, I rename each one. Usually I prepend with a two digit number to keep the steps in order, then I add a short note to remind myself what I backed up.
Additionally, when I've made changes to php, I will zip my catalog folder and rename the zip file to the same as whatever my last Backup MySQL file was named. Then if I need to go back, all I have to do is delete the contents of my catalog folder, unzip my files, and restore my db backup.
The problem is that constantly renaming Backup MySQL files becomes a disruption. Typically it's quick, but if I don't happen to have my FTP client up and running, it can take a minute or two to open it up, log in, navigate to the folder, find the file, and rename. And even when that's not the case, it's still an unnecessary extra effort.
Btw, this is not an entirely new desire. I tried to do it a few years ago:
https://www.zen-cart.com/showthread....e-Backup-mySQL
In that thread, it looks like torvista suggested some code alterations but I only *just* saw them. The mod has been updated since then, so I'm leery to test that. Really though, I want the ability to completely circumvent the auto naming process and give it my own name.
Bookmarks