|
|||
|
Cron Job to back up MySQL database
Hello,
I have the following command that I run via SSH and I want to run instead as a cron job: Code:
mysqldump --opt --single-transaction -uusername -ppassword database > /home/username/backups/file.sql Ideally I would like to have it save the file in such a way that there are multiple dump files present until I delete them, either like file1.sql, file2.sql or file_todaysdate.sql. Is there any way to set up this cron job like this? Thanks.
|
|
||||
|
At the bottom of this very thread are links to "Similar Threads" that you might find useful. One of those links is this one:
Cron job to back up SQL databases regularly |
![]() |
| Tags |
| cron job , database backup , mysql |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to back up mysql database using cron jobs? | guymelef | cPanel Newbies | 4 | 02-19-2010 04:52 AM |
| cron job - command to backup a database ? | king007 | cPanel and WHM Discussions | 4 | 08-17-2006 05:11 AM |
| cron job does absolutely nothing (no visible changes and no emails back to me)[moved] | Vchat20 | cPanel Newbies | 1 | 10-11-2005 10:54 AM |
| How to Back up database and/or files by setting up a cron? | Binesh | cPanel and WHM Discussions | 4 | 11-11-2004 02:14 PM |
| Cron job to back up SQL databases regularly | JenkinsLaw | cPanel and WHM Discussions | 3 | 07-14-2004 05:14 PM |