Zen Follower
- Join Date:
- Jun 2008
- Posts:
- 338
- Plugin Contributions:
- 0
Automate (cron job) "Down for Maintenance"?
Since store backup is crucial for business, I have created a cron job that does just that - daily. It works very nicely and saves me time by allowing me to avoid doing this manually, every day.
The problem is... if I understand correctly, in order for the database backup to be done properly, no activity must be going while that backup takes place (currently it takes less than a minute, but expected to take longer when the database grows as customers join and transactions are filled).
Which means that if I want to performed scheduled backups, the "Down for Mainteances" flag must be set as well, prior to the actual mysqldump command.
Is it possible to set that "Down for Mainteances" flag to 'true' from a shell script (run by a cron job)?
Thanks,
Daniel