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 - vBulletin Cron Based Database Backup (https://vborg.vbsupport.ru/showthread.php?t=231481)

doogie88 09-01-2014 03:18 PM

Thanks. That's exactly what I needed too! Filled my server HD after several months of backups!

Paul M 09-02-2014 11:24 PM

Its a trick covered many times in this thread, right back to 2010 :D

https://vborg.vbsupport.ru/showthrea...23#post1997323

RichieBoy67 09-02-2014 11:33 PM

Quote:

Originally Posted by Paul M (Post 2513558)
Its a trick covered many times in this thread, right back to 2010 :D

https://vborg.vbsupport.ru/showthrea...23#post1997323

Just one of the thousands of good tips I must have over looked. :)

Feel free to remind me anytime though because I am getting old. :D

delds 09-15-2014 02:51 PM

After just going through an almost 2 day down time after accidentally deleting the wrong database, and finding out that the host which I had paid extra for weekly backups, and now finding out their 2 most recent backups that some tables missing and needing to go back more than 3 weeks to get a backup that had all the tables, I have grown a distrust on counting on the host backups only.

This really works well, just installed it and tried it and it works great.

I have 2 questions, is there a way to set daily auto backups or do I only have the options of weekly? Manual backups can be run at any time.

2nd Is it possible to remove the date prefex on the tables when backed up so for example it would backuup
access.sql
as
access.sql and not 2014-09-15-Access.sql ??

If I ever had to re upload I would not want the prefix on the tables and would have to rename each one first.
The folder gets names by date do I really need the tables with the prefex also?

next when downloading it to my local computer what mode should it be in ascii or binary?

bzcomputers 09-15-2014 03:37 PM

Quote:

Originally Posted by delds (Post 2515253)
I have 2 questions, is there a way to set daily auto backups or do I only have the options of weekly? Manual backups can be run at any time.

2nd Is it possible to remove the date prefex on the tables when backed up so for example it would backuup
access.sql
as
access.sql and not 2014-09-15-Access.sql ??

If I ever had to re upload I would not want the prefix on the tables and would have to rename each one first.
The folder gets names by date do I really need the tables with the prefex also?

next when downloading it to my local computer what mode should it be in ascii or binary?

Yes, this mod is automatically set for doing daily backups. You need to adjust the "Date Format" option to set how many backups you would like to keep. You will find information on this at this link in the settings: http://uk.php.net/manual/en/function.date.php. What you may have currently set is "W" which will save each backup as the week number of the year. With a setting of "W" every daily backup for 7 days will overwrite itself when created and at the end of the year you will have 52 backups (probably not what you are looking for). I recommend a setting of "D" which will save your backups by day of the week. So you'll have one backup for each day of the week and the following week the backups will begin to overwrite each other. This way you will never have more than 7 backups saved.

Second, the prefix is just added to the file names, the tables contained within the .sql files are unchanged (no prefix added).

Last, when transferring use binary to be safe. Ascii transfers everything as a regular text file which can corrupt some data within the database. I also highly recommend using the option to combine all tables into one backup file and using Gzip. Less chance of issues all the way around.

delds 09-15-2014 04:17 PM

Thanks, I believe I have it set to auto backup every morning at 4 am. Single file backup of database gzip version, on the manual run it appears to backup perfectly. Will download to local computer in binary mode.

What software can I use on the local computer just to decompress to test that all tables are present?

bzcomputers 09-15-2014 04:30 PM

Quote:

Originally Posted by delds (Post 2515262)
What software can I use on the local computer just to decompress to test that all tables are present?

DbVisualizer it has a 21 day free trial which you can download here: http://www.dbvis.com/
There are other programs out there also.

You can always just re-import into mysql as a different database name and view it all there also, then just delete the database when you're done (be careful you're deleting the right database!).

Paul M 09-16-2014 10:33 AM

Quote:

Originally Posted by delds (Post 2515253)
Is it possible to remove the date prefex on the tables when backed up so for example it would backuup
access.sql
as
access.sql and not 2014-09-15-Access.sql ??

That prefix is only on the filename, not the actual backed up table within it. :)

chikuru 09-21-2014 03:19 PM

doesnt work on PHP 5.3.2
the window just display blank when clicking RUn Now from scheduled task..

Paul M 09-21-2014 06:08 PM

Sorry, but you are wrong.

It runs perfectly fine on php 5.2, 5.3, 5.4, 5.5 & 5.6

In fact when I first wrote it, and started using it, I was still on php 4.x


All times are GMT. The time now is 01:06 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
  • Page Generation 0.02182 seconds
  • Memory Usage 1,746KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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