Automated database backups in Drupal
If you're like me then the best of intentions are often not enough when it comes to making regular backups. At some point something goes wrong and the last three hours, or five days or one month's worth of work is lost. It's a heart stopping moment when the realization that precious data or hard work has disappeared right in front of your eyes. Luckily, it appears I'm not the only one with that problem. There's a contribution that can automate everything for people just like me.
The backup and migrate module is a real timesaver. It:
With backup and migrate you can dump some or all of your database tables to a file download or save to a file on the server, and to restore from an uploaded or previously saved database dump. You can chose which tables and what data to backup and cache data is excluded by default.
So says the module page on the Drupal website, but that's not really why it's so useful. It's real value lies in the fact that you can set it to automatically backup data and store a specified number of database backups. To do this:
- Click on Backup and Migrate in the Content Management section of the administration page
- Select the Backup Schedule tab
- Enter a value (in hours) for the backup period
- Specify how many backups to keep before discarding older ones
- Click Save configuration
For a site that is not under development and doesn't change too often, a daily backup should suffice. However, if you're working actively on the site, or it has a large number users and changes regularly then you might want to set an hourly backup. Factor in the assumption that you won't immediately know about a problem for some time before deciding on how many backups to hold on to. You might want to give yourself at least a couple of days worth of data, so for hourly backups this means holding on to 50+ copies at a time.
Finally, and most importantly, you have to ensure that your cronjobs are operational. The backups can only work as regularly as your cron. If you set hourly backups but cron only runs every six hours then you will only get a backup every six hours. It is easy to manage the cron using the Poormanscron module.
You are online with David Mercer
"Bestselling author of books about the web, eCommerce and marketing." Wikipedia
Inspiring and empowering entrepreneurs, businesses, bloggers and startups through social, marketing, and business advice.
30 000+ readers and counting
"This made my day" - Guy Kawasaki
Author of Enchantment and The Art of the Start
Sponsor this webpage for cents a day
- Real SEO backlinks
- Premium page position
- Large ad space
- Displays every hit
- Targeted audience
- High conversions
Become a recognized visionary
Share your insights into the future of your niche. Gain a following and drive brand recognition, traffic and sales.
Social SEO website reviews
Add your site to the world's premiere web directory and bookmarking service. With social integration and SEO juice to deliver multiple backlinks & great ROI.
Boost book & product sales
Track, analyze and promote any book or product sold through Amazon, anywhere in the world from around 3c per day.
topulo.us predictions
- Social influence will overtake web traffic as the primary metric for advertisers and marketers
- "Steve jobs" by Walter isaacson will sell more than 200 000 copies in 2012 on Amazon.com alone.
- Apple's iPad will sink below 50% market share by mid 2013
- Google search plus your world will kill off Twitter within two years
- Cloud printing with cloud ready printers will kill off the fax machine
TopRank
- Online Marketing News: Facebook IPO, Harmonize with Google+, Pinterest Dominates Traffic
- Essential Shifts in Online Marketing: Are You On Board? Are You Optimized?
- Blogger Relations: Push or Pull? How to Get Bloggers to Mention Your Brand
- Getting Your Internet Marketing Dream Job: How to Interview & Succeed at a Top Agency
- Google+ Optimization vs. Community Building: Pros & Cons of Google SPYW
terms of use | privacy | about | write for us | affiliates | employment | partner with us | advertise | contact
© site prebuilder 2009





















