![]() |
Yes, you may post them in this thread.
|
Thanks .. works like a charm in vb 3.6.7 PL1 .
just 2 questions : 1 - it took a backup Table by Table . i mean it gave me many files not just one .SQL file , is it right ? 2 - for the next day is it anyway that new backup will save and overwrite to last one ?? Thanks |
1. By default yes - you can change that in the config file.
2. No, each backup is kept (they are dated). |
Because I do more than one backup a day, I changed the file saving format, so it saves it by year/month/day/hour/minute
So in mysqlbackupconfig.php, on the line which reads.. $backup['DATE'] I changed it to Code:
$backup['DATE'] = 'Y-m-d-G-i'; // Backup file date format Below this: Code:
// Unlock Tables Code:
/* ------------- Remote FTP backup - added 6.11.07 ------ */ Additionally, you need to set the correct IP/hostname and the paths. So far for me, it's working a treat I've got it running every 3 hours to backup my database, gzip it, then ftp it to the server. Note: You will get a warning when the backup completes that the destination directory already exists I haven't fixed that bit yet |
Ok, installed... I install all of Paul's mods... really nice programming... :)
Set it for 4:00am EST daily as I don't think there's a lot of folks up around those times, at least in North America.... ;) Did a "Run Now" and it completed successfully..... :up: It created a nicely dated backup directory of files in a safe area... Thanks Paul... I'll sleep better knowing I'm no more than 24 hours out of date if I have a systems failure that needs recovery. Regards, Badger |
Getting this error:
An error occured during the MySQL backup. Details (Could not open Destination SQL file for writing.) Does it have to do with this? $backup['COMMAND'] = 'exec'; // exec, system or passthru I have exec disabled in php functions for security. Is there a workaround? |
If you have exec disabled then all you can do is try the other two (system,passthru). ATM you have disabled the mods ability to create/modify/delete files & folders so it obviously isn't going to work (tbh, disabling exec seems a bit of overkill to me).
|
I'm stilling getting the same error even after enabling exec
An error occured during the MySQL backup. Details (Could not open Destination SQL file for writing.) My config file for the mod is: Code:
<?php |
The majority of those "Could not open Destination SQL file for writing" errors are due to permissions being incorrectly set for the destination folder and/or an incorrect path to the destination folder.
|
I doubt that path is correct, unless you have a folder called private on the root of your server.
|
I'm still getting the same error even after setting the path in full (/home/username/public_html/foldername) and permissions to 755.
|
Quote:
2. the permissions must be 777, NOT 755 |
Also check that you don't have any open_basdir restrictions in php stopping you.
|
I do not have that enabled and I followed everything.
What else could be the problem? |
No idea, you have a permission problem on your server somewhere, there is not much we can tell you. I would suggest speaking to your host.
|
Quote:
1. If you entered the path exactly as you posted here, it is almost certainly wrong. 2. If you set the permissions to 755, the directory is NOT write-enabled and this add-on will not work. It must be set to 777. |
Thanks. Out of curiosity is there a swift and rather convenient way to restore the databases (or certain portions) via admincp?
I see the sql files are done per table, which is great but what is the proper way to restore these, aside phpmyadmin? |
Quote:
Regards, Badger |
So after changing my host, I was finally able to get this mod to work. Horrah! However, I found something peculiar...
The backup is happening randomly during the day, even though I set it up for it to happen at 4:00 in the morning. I noticed it today when using my forum at around 12:00 pm and noticing that a backup was in progress. Here are the times that the backup folders were created: 06-16-2007 19:05 06-17-2007 15:32 06-18-2007 11:23 06-19-2007 12:40 06-20-2007 11:19 06-21-2007 9:10 Any ideas? Thanks in advance. |
You're not getting enough visitors to trigger all your cron jobs.
|
Quote:
Could you elaborate a bit further or point me to a topic that does? I did not know that I needed visitors to trigger cron jobs. How many visitors do I need? |
Quote:
also what is ur suggestion ?? which one is better ( 1 file or table by table ) ? Thanks in Advance |
thanks for this....it might very useful or help for me.....wonderful mod....million thanks...;)
|
Quote:
Quote:
Quote:
http://www.vbulletin.com/docs/html/m...ed_tasks_intro |
Paul,
Thanks for the help. I now realize I should set up the task at a time when I will actually have some users, and not when I don't expect there to be any. |
Quote:
|
Quote:
Beautifully written to back us up, but I'd live to be able to do a general restore in case of crisis as easily. I know nothing about tables etc, s it would sure help to be able to do this for laymen like me. Thanks for your work Paul.... :) Always appreciated.... Regards, Badger |
I think this line in the main post covers your question :)
Quote:
|
Quote:
This should really be out of the box stuff. Please please incorporate this sort of feature natively. |
Doing a test restore.....
root@www1 [/home/allsexre/backups/2007-07-08]# mysql -umyun -pmypw mydb < Live-2007-07-08-full-backup.sql ERROR 1064 (42000) at line 24395714: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''1812' at line 1 root@www1 [/home/allsexre/backups/2007-07-08]# Anyone maybe know why? Is there a different way I could import this db? |
Once you are connected to mysql in SSH ;
Code:
use mydatabase Code:
source Live-2007-07-08-full-backup.sql |
Paul i couldnt find how can i make database as a just one file . i read config file but i couldnt find it . would u plz tell me what exactly i have to do for make backup just one file ??
thanks |
Quote:
PHP Code:
PHP Code:
|
Quote:
The comment for the setting seems obvious to me - please can you explain why it isn't - because you're not the first person to ask, and I really don't understand why. Quote:
|
yea u right . maybe the reason was my bad English or ..
thanks anyway for ur help |
Anyone?
I've been backing up religiously using this mod, then manually deleting any backups that were older than 7 days. I've been using "Combine=0" and ending up with many many files. What would be the advantage (if any) to going to a single file backup with "Combine=1"? Second, is there a web site, or anywhere I can go to learn how I would restore my database, in either form? Thanks Regards, Badger |
The advantage of single files is you can restore a single table if required. The disadvantage is you need to join them if you want to restore everything in one go. It's personal choice.
|
You should add how to combine the files in your first post Paul :)
Distance |
Quote:
|
Thanks for releasing this mod. It works like a charm.
|
All times are GMT. The time now is 07:24 PM. |
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:
|