Author |
Message |
Kdawg
Senior WebHelper
Joined: 21 Apr 2003
Posts: 153
|
Posted:
Fri Apr 25, 2003 9:11 pm (21 years, 8 months ago) |
|
Does anyone have a good MySQL backup program? |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Sat Apr 26, 2003 7:31 am (21 years, 8 months ago) |
|
This is what we use at 4WebHelp, in our cron file:
Code: | 0 0 * * 1 /usr/local/psa/mysql/bin/mysqldump -uUSERNAME -pPASSWORD DATABASE_NAME |gzip |uuencode database_backup.sql.gz |mail EMAIL_ADDRESS -f"4WebHelp Database Backup" |
But that will email it to you... I'll see if I can dig up the code to save it somewhere on the server, if you need it? |
________________________________
|
|
|
|
norm
Junior WebHelper
Joined: 17 Feb 2003
Posts: 20
Location: Oxford, U.K.
|
Posted:
Sat Apr 26, 2003 10:43 am (21 years, 8 months ago) |
|
Hi,
Either that or you can use phpMyBackup. Goto http://www.phpmybackup.com/.
phpMyBackup can be used from the web or for cron jobs and scheduled backups of complete db's, tables etc. It can gzip up the backup. It can also ftp a backup of database to a specific ftp server.
Hope that helps...
Cheers, Norm |
|
|
|
|
Kdawg
Senior WebHelper
Joined: 21 Apr 2003
Posts: 153
|
Posted:
Wed May 07, 2003 4:44 pm (21 years, 7 months ago) |
|
How would I put that code in here to email me a backup once a week?
|
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed May 07, 2003 4:49 pm (21 years, 7 months ago) |
|
0 in the first box, 0 in the second, * in the next two, 1 in the fifth. Put the rest in the command box. This will email you in the night, between Sunday and Monday.
Code: | 0 0 * * 1 /usr/local/psa/mysql/bin/mysqldump -uUSERNAME -pPASSWORD DATABASE_NAME |gzip |uuencode database_backup.sql.gz |mail EMAIL_ADDRESS -f"Database Backup" |
|
________________________________
|
|
|
|
adam
Forum Moderator & Developer
Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Wed May 07, 2003 4:51 pm (21 years, 7 months ago) |
|
assuming the server uses plesk... |
________________________________ It's turtles all the way down... |
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed May 07, 2003 4:55 pm (21 years, 7 months ago) |
|
Oops... Of course it won't, since that was a CPanel screenshot. You'll have to replace "/usr/local/psa/mysql/bin/mysqldump" with the appropriate command for your OS. |
________________________________
|
|
|
|
Kdawg
Senior WebHelper
Joined: 21 Apr 2003
Posts: 153
|
Posted:
Wed May 07, 2003 8:19 pm (21 years, 7 months ago) |
|
how do I know the command? I know the servers running on RedHat Linux 8.0. |
|
|
|
|
adam
Forum Moderator & Developer
Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Thu May 08, 2003 3:50 pm (21 years, 7 months ago) |
|
I can't seem to find anything in cpanel that would tell you, try running the following script:
Code: | <?php
header('Content-type: text/plain');
print system('locate mysqldump');
?> |
it should be in there somewhere |
________________________________ It's turtles all the way down... |
|
|
|
|
Page generation time: 0.132332 seconds :: 17 queries executed :: All Times are GMT
Powered by
phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme