I'd like to schedule a nightly backup of my database. Does anyone have an example of the cron/mysqldump which would create a new backup with the date in the name (or unique name) so I can keep a weeks worth?
This is the command I have that creates a complete backup. Just curious is anyone is doing anything special (like locking the database) ot anything else?
I wrote an Apache module which "disables" the web server if a certain file exists. By disabling the web server, I mean that any HTTP requests are responded to with a simple "down for maintenance" page. My cron table entry creates that file, does the backup, and then deletes the file.
That may be overkill, but I couldn't think of another method.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.