06.23.2014|69 views|
Clustrix Whitepapers
INFOGRAPHIC: The Future of the Database
What We Offer: Clustrix Features
Proven in Production: Clustrix Case Studies
Like this piece? Share it with your friends:
|More
Using the MySQL export script I've showed from thelast post(assuming you saved it in a file named "$HOME/database-export.sh"), you may now perform a daily backup with your crontab service like this.
1 |
|
This script should create a daily folder under your home directory, for example like "$HOME/mysql-backups/Mon", "Tue", "Wed" etc. It should save up to 7 days in a week if you run this with a daily cron job.
1 |
|
This is not the most robust way of backing up your DB, but it's a simple solution if you just want something quick up and running without worry too much.
Published at DZone with permission ofZemian Deng, author and DZone MVB. (source)
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)
Tags: