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 (https://vborg.vbsupport.ru/showthread.php?t=167276)

Paul M 01-27-2009 05:35 PM

Quote:

Originally Posted by tom212 (Post 1725262)
Paul,

If this is installed and running perfectly in 3.7.4, would you expect any issues when upgrading to 3.8? I realize you have a 3.8 version but I hate to go through the upgrade/config hassles if this version should suffice.

Any ideas?

Thanks,

Tom

I believe it should work fine after you upgrade.

MTGDarkness 01-29-2009 05:31 PM

I installed this... For some reason, I can't get the directory right. I have no idea about relative directories... I stuck a folder named "Backups" in the Includes folder, CHMODded it to 777, and then pointed it to any number of locations... ../backups/, /public_html/forums/includes/backups/, ... Not sure what to do at this point...

kevcj 01-29-2009 05:55 PM

Quote:

Originally Posted by MTGDarkness (Post 1728285)
I installed this... For some reason, I can't get the directory right. I have no idea about relative directories... I stuck a folder named "Backups" in the Includes folder, CHMODded it to 777, and then pointed it to any number of locations... ../backups/, /public_html/forums/includes/backups/, ... Not sure what to do at this point...

Well, to start with you want your backup folder ABOVE the html root. The location you have it at now - "/public_html/forums/includes/backups/" - anyone could access that folder and download your database. And then guess what, all of your data no belongs to someone else.

The backup folder should be somewhere like - account_name/backups/public_html/forums

Get the path fixed before you get the script running.

Lionel 02-24-2009 04:02 AM

Hi Paul,

I have been using this great script for a while now. I recently added a function in the cron to delete all backups that are 3 days or older when it performs a backup, because I had to constantly manually delete old files.

I placed it right after

echo $mysqlBackup->STATUS;

What I'd like to know is how to determine a successful status from the script. In case of failure I don't want to run the delete. Something like
if($status == 'success')
{
// my stuff here
}

Thanks

Paul M 02-24-2009 08:57 AM

It should contain 'The Backup was completed successfully.'

You can change that (about line 27) in the mysqlbackup.php file if you wish.

MTGDarkness 02-25-2009 04:59 PM

I just can't get the directory right... I set up a folder in the server's root directory, and tried setting the dump path to just /(foldername)/. Then I tried (server username)/(foldername)/... How can I set this right? :(

Paul M 02-25-2009 06:12 PM

Use a relative path, like ../../foldername

MTGDarkness 02-25-2009 06:18 PM

And what would the relative path be when the folder is in the server root? I honestly don't know how to use relative paths.

Paul M 02-25-2009 08:56 PM

No idea, that depends on your server setup. Google is your friend, lookup reletive paths.

Markos 04-30-2009 10:54 AM

hi Paul is there away so i can make this run twice a day like say 10am and 10pm


All times are GMT. The time now is 01:19 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.01524 seconds
  • Memory Usage 1,735KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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