| Author |
Message |
Gunner
Guest

|
Posted:
Thu Dec 30, 2004 8:20 pm |
|
First opff thanks for releasing what sounds like a great mod. I'm having a problem installing.
I get to the password protect stage and then get the following error once I submit:
| Quote: |
Warning: fopen(backup/.htpasswd): failed to open stream: Permission denied in /home/boozebro/public_html/anbinstall.php on line 171
Warning: fwrite(): supplied argument is not a valid stream resource in /home/boozebro/public_html/anbinstall.php on line 172
Warning: fclose(): supplied argument is not a valid stream resource in /home/boozebro/public_html/anbinstall.php on line 173
Warning: fopen(backup/.htaccess): failed to open stream: Permission denied in /home/boozebro/public_html/anbinstall.php on line 184
Warning: fwrite(): supplied argument is not a valid stream resource in /home/boozebro/public_html/anbinstall.php on line 185
Warning: fclose(): supplied argument is not a valid stream resource in /home/boozebro/public_html/anbinstall.php on line 186 |
Is this an issue with directory permissions? Thanks |
| |
|
|
 |
Gunner
Guest

|
Posted:
Thu Dec 30, 2004 8:52 pm |
|
OK here is what I did. I chmod my backup directoy to 777 before running the install script. I guess the directory needed write permission to work.
Question: Does the autobackup setting apply to the database or the files? |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 756
|
Posted:
Thu Dec 30, 2004 9:59 pm |
|
|
|
 |
Guest

|
Posted:
Fri Dec 31, 2004 8:22 am |
|
Thanks... I'm a little uncertain of the email settings...what goes into the send mail from setting. I have everything working except the send mail aspect. Great Mod! |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 756
|
Posted:
Fri Dec 31, 2004 12:55 pm |
|
put whatever email address you want in the from box. its there in case your mail server catches it as spam and you can add the from address as a "safe sender" so it goes to your inbox. |
| |
|
|
 |
xGSTQ

Joined: Dec 13, 2005
Posts: 91
|
Posted:
Fri Jan 12, 2007 7:25 am |
|
Thanks this thread fixed my issue, i was getting a blank white screen whan asking to insert a protected name and password for the named dir ...
I chmodded to 777 and ran it again and it worked fine  |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 756
|
Posted:
Fri Jan 12, 2007 1:41 pm |
|
I have a new version in the works right now. It will have alot more features but the main attraction will be incremental backups. So even if you have a huge database or massive amounts of files, this script will still back the whole thing up without timing out.... It can also do multiple databases and much more. |
| |
|
|
 |
xGSTQ

Joined: Dec 13, 2005
Posts: 91
|
Posted:
Fri Jan 12, 2007 1:48 pm |
|
Also for some weird reason in your install.txt when adding the code to footer.php it suggests
| Code: |
foot();
?>
-------------------
Above add:
-------------------
//start auto backup code
$result1 = $db->sql_query("SELECT autostate, autolast, autoinc FROM ".$prefix."_advbackup where id='1'");
$row = $db->sql_fetchrow($result1);
$autostate = $row['autostate'];
$last_back = $row['autolast'];
$autoinc = $row['autoinc'];
if ($autostate == "on"){
$rawtime = time();
if (($rawtime - $last_back) > ($autoinc * 3600) ) {
include("includes/dump.php");
}
}
//end auto backup code
|
I noticed that i lost my downloads footer ! lol
So i had to add it in between the foot(); and ?> |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 756
|
Posted:
Fri Jan 12, 2007 2:12 pm |
|
The problem with that is that foot function contains a die(); at the end so that code will never get executed.
You should probably put that code right above the die(); in the foot function.
the bottom my footer.php looks like this
| php: |
if (file_exists("includes/custom_files/custom_footer.php")) {
include_once("includes/custom_files/custom_footer.php");
}
echo "</body>\n</html>";
ob_end_flush();
die();
}
foot();
|
so i would do this
| php: |
if (file_exists("includes/custom_files/custom_footer.php")) {
include_once("includes/custom_files/custom_footer.php");
}
echo "</body>\n</html>";
ob_end_flush();
//start auto backup code
$result1 = $db->sql_query("SELECT autostate, autolast, autoinc FROM ".$prefix."_advbackup where id='1'");
$row = $db->sql_fetchrow($result1);
$autostate = $row['autostate'];
$last_back = $row['autolast'];
$autoinc = $row['autoinc'];
if ($autostate == "on"){
$rawtime = time();
if (($rawtime - $last_back) > ($autoinc * 3600) ) {
include("includes/dump.php");
}
}
//end auto backup code
die();
}
foot();
|
|
| |
|
|
 |
xGSTQ

Joined: Dec 13, 2005
Posts: 91
|
Posted:
Sat Jan 13, 2007 2:32 am |
|
Yup that worked great !
Thank you  |
| |
|
|
 |
|
|