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)

Superorb 09-17-2012 04:00 PM

Quote:

Originally Posted by Trumpetrhapsody (Post 2366130)
I just tossed this code in there to keep only the latest 5 backups:

Does this work for you? I have 6 files in my backupDB directory and after running the script I still have 6 files. The backups weren't created every day though, they were a few days apart for some of them. I placed the code in the same spot in my mysqlbackup.php file.

Trumpetrhapsody 09-17-2012 05:11 PM

Sorry, I meant to say 6. If you have no more than 6 files you won't see any get removed. You can adjust the number it keeps around.

Superorb 09-17-2012 05:32 PM

Quote:

Originally Posted by Trumpetrhapsody (Post 2366202)
Sorry, I meant to say 6. If you have no more than 6 files you won't see any get removed. You can adjust the number it keeps around.

I uploaded a few dummy files to my testvb and it still doesn't delete them. The dir is 755 so deleting should be fine. I have 7 files in that dir and it's set to keep 5 files.

ZombieAndy 09-17-2012 07:52 PM

Im probably being really dumb here paul but everytime i try to run this i just get:

Code:

Automatic Database Backup for vBulletin
Backup Error : Could not write to destination file ( .../backups/2012-09-17/Forum-2012-09-17-Aaggregate_temp_1347351000.sql )

And ive tried different varients of the address, both full and relative.. have made sure the directory permissions are set to 777.. what else can i do?

Superorb 09-17-2012 08:00 PM

Quote:

Originally Posted by ZombieAndy (Post 2366242)
Im probably being really dumb here paul but everytime i try to run this i just get:

Code:

Automatic Database Backup for vBulletin
Backup Error : Could not write to destination file ( .../backups/2012-09-17/Forum-2012-09-17-Aaggregate_temp_1347351000.sql )

And ive tried different varients of the address, both full and relative.. have made sure the directory permissions are set to 777.. what else can i do?

Should it be 3 dots or two? [.../]?

ZombieAndy 09-17-2012 08:08 PM

If your trying to create relative path it should actually be 1 stop (./backups/)

What you see is my dodgy editing for the post.

Anyway, it dosnt work with either a relative or full path in there.

Paul M 09-17-2012 10:05 PM

Quote:

Originally Posted by Superorb (Post 2366249)
Should it be 3 dots or two? [.../]?

Two.

Superorb 09-17-2012 10:13 PM

Quote:

Originally Posted by Paul M (Post 2366288)
Two.

I know ;)

betterthanyours 09-23-2012 10:07 AM

Is there anything similar that will backup and then also upload to remote site at all?

Delfi_r 09-23-2012 03:28 PM

Quote:

Originally Posted by Trumpetrhapsody (Post 2366130)
I just tossed this code in there to keep only the latest 5 backups:

Code:

// Delete Old Backups
        ....       
        }

You can call it whenever you want, I put it after the "Repair and Optimize" section, before the "Start Initial Dump" section.

Wich file I should modify?


All times are GMT. The time now is 08:20 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.02797 seconds
  • Memory Usage 1,745KB
  • 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
  • (3)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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