Automate the backup of my databases and files with cron
Posted
by
Patrick
on Server Fault
See other posts from Server Fault
or by Patrick
Published on 2011-01-03T11:48:38Z
Indexed on
2011/01/03
18:55 UTC
Read the original article
Hit count: 293
hi,
I want to automate the backup of my databases and files with cron. Should I add the following lines to crontab ?
mysqldump -u root -pPASSWORD database_name | gzip > /home/backup/database_`date +\%m-\%d-\%Y`.sql.gz
svn commit -m "Committing the working copy containing the database dump"
First of all, is this a good approach?
It is not clear how to specify the repository and the working copy with svn?
How can I run svn only when the mysqldump is done and not before ? Avoiding conflicts
© Server Fault or respective owner