![]() |
The config file has a setting for closing the forum (or not). Is it, in fact, necessary to close the forum during the automated backup?
Thanks. Sincerely, David Gillaspey |
If you run your backups in a quite period then no, it's not. I don't use that option.
|
OK. Thanks, Paul.
Sincerely, David Gillaspey |
How does this handle the old backup files? Will it delete backups, say after a week old automatically? Or do they just keep getting placed in the backup folder and you have to go manually delete them so you don't eventually run out of disk space?
|
You must manually delete them.
|
Quote:
oh well.... i like the way this backs up better though :) |
I've added a bit of code into mysqlbackup.php to compress the resultant SQL file with gzip. My database is about 35MB, and it's making it 5MB.
If you want to do the same, here is what to do. Please note, though, that this will only work if you have chosen to combine all data into one SQL file and not split each table into its own file. File: ./includes/mysqlbackup.php FIND (lines 525 to 527): PHP Code:
PHP Code:
|
Very nice!!
Thanks Paul! :D |
Quote:
|
Quote:
Hmph.. I guess the memory exhausted? |
Quote:
|
Quote:
|
I found this mod by searching for backup things, im just now learning about how to do them etc etc. So I will ask this before I post a reply saying I get some error message.hehe
HTML Code:
$backup['DUMP_PATH'] = '/path/to/backups/'; // Path to backups folder, with trailing slash |
When I try to run this I get the following error message:
Database Backup An error occured during the MySQL backup. Details (Could not open Destination SQL file for writing.) |
Thank you
Installed and working fine |
Quote:
|
Quote:
|
You may have other (php) restrictions in place.
|
Could you be a little more specific about that Paul? I keep thinking I am missing something stupid and I can't figure it out.
|
Since I have no idea how your server/hosting is set-up then I can't be specific. My guess would be a php open_basedir restriction.
|
I mm getting this error
Database Backup Parse error: syntax error, unexpected T_VARIABLE in /home/mohsin1/public_html/includes/mysqlbackupconfig.php on line 18 Help me Ahsin |
Fix the editing error you have made in mysqlbackupconfig.php
(possibly a missing semi-colon at the end of the dump path line you edited). |
great hack thanks paul installed ;)
|
What are the benefits of using this instead of Mysqldumper?
|
Well I got the mod installed and ran the cron job to manually test it and it went through.
MySQL Backup was completed successfully with no errors. Done Since it said it was done with no errors that means im in the clear right? So if I pull this off my FTP and save it on my computer this will be all I need to run if something ever happens? Sorry for all the idiot questions but honestly this is the first back up I have ever done.:( -Edit- Just wanted to say that it closed my forums and opened them after the job was done no problem. Marked as Installed.:) |
how do I restore a large database without SSH
|
Installed working great :)
just wondring is that possible to get only 1 .sql file instead of whole bunch of files like when we back up from Admincp we get only 1 file is that possible with this one? :( Ahsin |
Just change the combine option in the config file.
|
aite thanks for ur reply working great now
Ahsin |
Thanks for this mod :)
|
One question, after I restore the database and go to the forum it still say " Forums is close ...." shouldn't it turn on automatically? Just to make sure that i'm not doing anything wrong
|
No, you will have to turn it on manually if it's closed (because you backed it up closed).
|
thanks Paul,
In the future will you include FTP option so it can upload the db to an external server for a second back up? This is a nice feature to have, hope to see it future version. Thanks |
I apologize for being a newb here, but is there a step by step of how/where to install this on my database and then how to turn it on so that it backs up all the information I need automatically?
|
which directory you guys backup to? I backup to the same server my forum resides but given that the backup folder is 777, other people will be able to read my database backup ?
|
Hey Paul, in our site the script halt on "Database Backup" and stays there.
In the FTP, the new date dir is created, but the site is not closed and a sql file is not generated. 3.6.4 |
Then you have a problem with your set-up.
|
Quote:
Quote:
|
You can also create/edit the .htaccess file in your forum directory. Add the line:
Code:
php_value memory_limit 50M |
I really wish I could use this mod... Is there any chance of a MysqlHotCopy version of this? Or is there already something out there that I'm not finding?
With over 3.5 million post table records and no slave DB server, using mysqldump really isn't an option (downtime would be way too long). :( Mysqlhotcopy can do the backup in 3 minutes, but I wish I could find a mod like this to shut down / open the boards automatically... |
All times are GMT. The time now is 11:37 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|