vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - vB Database Backup Pro (Lite) for vb 3.6 (https://vborg.vbsupport.ru/showthread.php?t=126925)

philip_g 08-25-2007 02:35 PM

Quote:

Originally Posted by Paul M (Post 1317600)
Turn off safe mode, I have a feeling that you cannot override the default php timeout in safemode, so the script is possibly timing out.

Yep. Working now and backing up a full 400 megs.

slowphantom 08-31-2007 02:11 PM

thx Paul good idee
but i have somthing not right

i make evry thing
and its wreit empty folder
nothing on it
i see the folder 2007-08-31
but its empty
can u help me pls
thx

rainyleaves 09-01-2007 06:44 AM

I set backup schedule task time AM:6.
But backup time is not correct when it's run PM:1 or PM:8 etc...
How can I fix?
Please help...

Thanks. :)

Paul M 09-01-2007 02:34 PM

Quote:

Originally Posted by slowphantom (Post 1329501)
thx Paul good idee
but i have somthing not right

i make evry thing
and its wreit empty folder
nothing on it
i see the folder 2007-08-31
but its empty
can u help me pls
thx

Either it didn't run or you have a folder/files writing permissions error, most likely the second.

Quote:

Originally Posted by rainyleaves (Post 1329982)
I set backup schedule task time AM:6.
But backup time is not correct when it's run PM:1 or PM:8 etc...
How can I fix?
Please help...

If you are having trouble with cron jobs then you need to ask on vbulletin.com as that's a standard part of vbulletin.

rainyleaves 09-01-2007 05:28 PM

Thanks, Paul.

Dream 09-02-2007 09:02 AM

I'm running mysql 5, should I set this to 0

$backup['MYSQL4'] = 1; // Set to 1 if you are using MySQL4

Also, to make just one dump and not one for each table, should I set this to 1

$backup['COMBINE'] = 0;

And will this delete old backups?

edit-
I just tested it with combine both on and off and figured it out.

Also I read about the mysql option being for mysql 4 and up, so I leave it as 1? Or would 0 or other value be better for Mysql 5?

Thanks for this mod, I had it on vb 3.0 and it didn't work for ages. I still had the scheduled task there, and the files. And I think the task was enabled.

Paul M 09-02-2007 09:38 AM

Set it to 1 on mysql4 and above.

Nothing in this mod deletes old backups, unless you run two backups on the same day.

Dream 09-03-2007 01:10 AM

Ok thank you.

djbaxter 09-03-2007 01:29 AM

Quote:

Originally Posted by Paul M (Post 1330641)
Set it to 1 on mysql4 and above.

Nothing in this mod deletes old backups, unless you run two backups on the same day.

Although, as others have mentioned, that would be an excellent addition to this add-on... deleting old backups after the new one is created or after a certain length of time (e.g., keep only the last 3 days or 7 days).

jazz_aaf 09-04-2007 11:23 PM

Is there a way to divide the backup job into several jobs, each one of those jobs backs up certain tables of the database?

I am not able to backup a large database because of large tables.

Deimos 09-06-2007 12:27 AM

This is the out of memory message I get

Creating gzip file from SQL file

Fatal error: Out of memory (allocated 5242880) (tried to allocate 206317869 bytes) in /home/xxxxx/public_html/includes/mysqlbackup.php on line 534

Forgot to add, I had the memory limit set to 500mb and it did this
so I don't know what to do

StarBuG 09-28-2007 06:54 AM

Hi

Is there a way to have the script make 2 backups each day?
How would I do that?

I have lost 2 days of my forum a while back because the backup was done a short while after my database got corrupt.
To prevent that I really would like to have 2 Backups each day.

Any chance for that?

Thanks in advance

StarBuG

Deimos 09-28-2007 07:02 AM

Can someone tell me why I keep getting that out of memory message?
I still can't do regular backups because of it

Fatal error: Out of memory (allocated 5242880) (tried to allocate 208268833 bytes) in

Paul M 09-28-2007 07:06 PM

No idea, there is no gzip facility in this modification.

Paul M 09-28-2007 07:09 PM

Quote:

Originally Posted by StarBuG (Post 1348801)
Hi

Is there a way to have the script make 2 backups each day?
How would I do that?

I have lost 2 days of my forum a while back because the backup was done a short while after my database got corrupt.
To prevent that I really would like to have 2 Backups each day.

Any chance for that?

Thanks in advance

StarBuG

AFAIK, you cannot run one vb cron job just twice a day - you would need to create a second cron job to run at the hour you want.

You also need to change the config file to include the hour in the file name, otherwise one backup will overwrite the other.

StarBuG 10-03-2007 09:59 AM

Quote:

Originally Posted by Paul M (Post 1349150)
AFAIK, you cannot run one vb cron job just twice a day - you would need to create a second cron job to run at the hour you want.

You also need to change the config file to include the hour in the file name, otherwise one backup will overwrite the other.

I know that, but how do I add the hour into the filename in the config?
I am not a php programmer ;)

Paul M 10-03-2007 10:14 AM

Edit the backup date config line ;

Quote:

$backup['DATE'] = 'Y-m-d'; // Backup file date format
The format of the letters is here.

StarBuG 10-03-2007 10:55 AM

This adds the time to the folder as well

I rather would like to have the time added to the filename only so that I have one folder per day with X numbers of backups inside it.
How would I go for that?

Paul M 10-03-2007 12:03 PM

You cannot, there is no seperate setting for that.

StarBuG 10-03-2007 12:47 PM

But wouldn't that be possible by editing the mysqlbackup.php file?
The name is generated there, isn't it?
I don't mind having it hardcoded and not as a config setting.

DiverTree 10-08-2007 12:26 AM

Whoohoo!!! i got it. lol.

where do you guys recomend that i put the backup file?

should i put it in a file at the same level (pardon my teminology) as the public_html file?
in the public_html file?
in a folder in the public_html file?

where would it be most secure?

i even added revens bit of code to get it in a zip file. :cool:
thanks paul, thanks reven :)
i would love to add revens coding to save it on an outside ftp, if i could get some help figuring out the filepaths. i read through this mod atleast three times but all the different filepath discriptions has got me all scared. :( lol

Paul M 10-08-2007 01:12 AM

Always save backups outside of the public_html, you don't want people to be able to access them.

DiverTree 10-08-2007 01:25 AM

Quote:

Originally Posted by Paul M (Post 1355194)
Always save backups outside of the public_html, you don't want people to be able to access them.

gotcha ;) you da man
i thought i had marked this mod installed ... but i didnt. got it now. :) thanks again

aggiefan 10-08-2007 06:39 PM

i went back a couple of pages to see if this was addressed but we run under windows server 2003 and apache/php. When I point the directory to the C: drive it backs up fine but we have a share drive that is run by our hosting company which we currently use to do backups since its off the server completly. But there is a permission issue writing the file there (it gives a permission error). im guessing apache/php has a user account which needs access but have no idea what it is.... was wondering if anybody could help.

and the section question.... what we really want is a single file that is created and it is overwritten every night. Is there anyway to have a single file that just gets overwritten or updated every night? (IE if i take out the date part would that do it).

Paul M 10-08-2007 07:03 PM

I would imagine that if you did a default install of apache on W2000 then it's running under the system account so will not be able to access shared drives - you would need to create a dedicated user account, change the service to use that account, and go from there.

Mecho 10-10-2007 09:54 AM

yesterday my database Was CRASHED !! Thanks this mod that i had a backup :)

thanks again Paul M

melbo 10-19-2007 01:41 AM

woOT. Test backup worked flawlessly. Hopefully we'll see tonight a fresh backup.
I think that many of these problems are based on a bad path if one is trying to place the backup folder outside of public_html.

StarBuG 10-19-2007 08:57 AM

@Paul

Can you please help me with the filename.
I really need multiple backups but I don't want each backup in its own folder instead I would like to have one folder per day containing multiple backup files.

Help would greatly be appreciated.

Thanks

StarBuG

z0diac 10-20-2007 02:03 PM

This doesn't seem to do anything. I went to scheduled tasks to manually run the job, and it just cleared the box and said "Database Backup" at the top.

I shelled in and went to the location I selected it to store at... no file.

Oops, ok, it seems you can't get out of your forum root directory. I select /dir2 which is from my hard drive root, and it put it in my forum root (my forum is still a few subdirs deep below dir2).

Paul M 10-20-2007 04:29 PM

Quote:

Originally Posted by StarBuG (Post 1363625)
@Paul
....
I really need multiple backups but I don't want each backup in its own folder instead I would like to have one folder per day containing multiple backup files.


Sorry, but I just don't do customised versions of any of my mods (unless you want to pay for my time of course) - it simply would not be practical, as so many people want little things changing here and there. It's enough to just keep up with supporting them as they are.

In the case of this mod, any changes would also take a little longer as I didn't write the original code, so I have to familiarise myself with how it works.

perfphysio 10-22-2007 10:55 AM

Hi there. Thanks for this useful tool. I have one inpt question on the permissions for the folder that this is writing the back up to, in terms of read and write and execute etc.

There are settings for owner, groups, public etc. What is the best way to lock this down so that the system can run the cron job successfully but also so that we can keep other's eyes out of there?

Also can you perhaps give us a screen shot that will show us a typical cron set up for a once a day or once a week backup?

thanks a lot :)

mgurain 11-10-2007 04:33 AM

Hi Paul M,
I used :
Code:

$backup['DUMP_PATH']        = DIR.'/../../backups/';
We I try to run in from the ACP cron, I get this message:
Quote:

Warning: main() [function.main]: Unable to access /my_server_link/my_site/vb/./includes/cron/cronbackup.php in /admincp/cronadmin.php on line 110

Warning: main(/my_server_link/my_site/vb/./includes/cron/cronbackup.php) [function.main]: failed to open stream: No such file or directory in /admincp/cronadmin.php on line 110

Warning: main() [function.include]: Failed opening '/my_server_link/my_site/vb/./includes/cron/cronbackup.php' for inclusion (include_path='.:/usr/local/lib/php') in /admincp/cronadmin.php on line 110
What's a problem ?

thanks,,

Paul M 11-10-2007 12:05 PM

Quote:

Failed opening '/my_server_link/my_site/vb/./includes/cron/cronbackup.php' for inclusion
That suggests that cronbackup.php is not in the includes/cron/ folder.

Brezeer 11-10-2007 12:15 PM

What does this mean?

XML Error: not well-formed (invalid token) at Line 2

Brezeer 11-10-2007 12:20 PM

Uhmm nvm mate my bad... i imported txt file instead xml.... sorry addon works great thanks allot for it!

PS. getting this error when backuping:

Database Backup
An error occured during the MySQL backup. Details (Could not open Destination SQL file for writing.)

Paul M 11-10-2007 07:02 PM

That means you don't have permission to create the backup file. You need to sort out your write permissions.

pakomen 11-12-2007 10:37 AM

Great tool. Thanks so much. :)

zetetic 11-15-2007 01:22 PM

I upgraded to PHP 5.2.5 yesterday, and the forum didn't re-open after the backup last night. Any idea why that might happen?

Paul M 11-15-2007 02:53 PM

Nope, no idea at all.

zetetic 11-15-2007 03:21 PM

Thanks Paul. Hopefully it was just a fluke.


All times are GMT. The time now is 05:56 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
  • Page Generation 0.02730 seconds
  • Memory Usage 1,825KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete