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)

dorans 09-02-2012 02:08 PM

:D :up:
cca 900MB
Thanx :)

Mauro79 09-02-2012 11:52 PM

the backup does me fine, but when I put everything in the localhost - attachaments and avatars are not.
may be corrupted?
What configuration of hack me?
thanks

BirdOPrey5 09-03-2012 09:40 AM

Mauro-

It is likely you have attachments and avatars set to be saved in the file system- this mod only backs up the database. You need to worry about coping files separately.

Admin CP -> Attachments -> Attachment Storage Type
and
Admin CP -> Avatars -> User Picture Storage Type

These places will tell you where your attachments and avatars are stored.

charlesr 09-03-2012 10:01 AM

Quote:

Originally Posted by Mauro79 (Post 2362141)
the backup does me fine, but when I put everything in the localhost - attachaments and avatars are not.
may be corrupted?
What configuration of hack me?
thanks

Assuming you have also put the filesystem into localhost..... Don't panic. When restoring the forum locally you need to specify the local location for the attachments etc. It's a hidden menu.

To get things working:
Update local path in /includes/config.php
Update email options settings in vbulletin admin panel to reference new url (along with all the other settings)
I had my attachments stored in the filesystem and in vbulletin, in a location specified as a crazy full server path which can only be changed by switching to debug mode: $config['Misc']['debug'] = 1; <<by adding that to the 2nd line of the config.php). Then a hidden item in the admin panel's option menu appears for "untouchables" (2nd on the list!) where the path can be changed (remembering to remove the debug mode line afterwards from config.php).

tonym 09-03-2012 01:53 PM

Quote:

Originally Posted by Paul M (Post 2267532)
The mod will always instruct the server to gzip the file (if you have the option set). If its not doing it sometimes then thats a server side issue.

Any idea what we should tell our host about this error? I have this mod installed on 2 forums and a test forum.

all stopped working on aug 30th 2012.....my host dont seem to think its them..all files on my side have not changed and even reinstalled the mod...still no gzip.


Host just emailed back and said everything fine on the server

The gzip is installed on the server and working fine. Please have a look:

======================================
root@rs2 [~]# which gzip
/bin/gzip

root@rs2 [~]# gzip -V
gzip 1.3.5
nothing has changed on my end.......time to find a new host I guess

Mauro79 09-03-2012 09:56 PM

I have everything stored in the database.
mm do not quite understand your answers. My English is bad.

http://i.imgur.com/Bmhkf.png
http://i.imgur.com/aFyTO.png
http://i.imgur.com/s5ge5.png

probe twice with two backs.
Thanks for your answers.

BirdOPrey5 09-03-2012 10:57 PM

I see you've made a separate thread- https://vborg.vbsupport.ru/showthrea...66#post2362366

Good idea because the error does not seem to be related to this mod.

tonym 09-04-2012 01:22 AM

Quote:

Originally Posted by Paul M (Post 2069416)
Unfortunately, I cannot help you with server issues. The mod will issue the command to gzip them, if the server fails to do this then you need to speak to your host to investigate why. An easy test would be to connect via SSH, navigate to the folder and type gzip <filename>.

on 4.2

I can ssh and gzip the files
but it still dont work from the MOD, gzip in this MOD has worked for 2 months since I installed it. It just stopped working a few days ago....

thanks for any help

I have installed at another host also...same problem

Superorb 09-10-2012 05:00 PM

I have found a script that incorporates a feature that will delete backups that are X days old. Is there a way to incorporate it into this Mod? Maybe in the next release?

http://www.wjunction.com/48-technica...up-script.html

Trumpetrhapsody 09-17-2012 12:34 PM

I just tossed this code in there to keep only the latest 5 backups:

Code:

// Delete Old Backups
        function deleteOLD($directory)
        {
                $dirs = array($directory);
                $files = array();
                $files = array_merge($files, scandir($directory, false));
                unset($files[0]);
                unset($files[1]);
                sort($files);

                // Loop over all but the 5 newest files and delete them
                // Only need the array keys (filenames) since we don't care about timestamps now as the array will be in order
                if (count($files) > 5)
                {
                        for ($i = 0; $i < (count($files) - 5); $i++)
                        {
                                // You'll probably want to check the return value of this too
                                $file = $this->DUMP_PATH.$files[$i];
                                $this->removeFile($file);
                                echo "<i>[Deleting Old Backup - $file]</i><br />"; vbflush();
                        }
                } else { echo "<i>[No Old Backups to Delete.]</i><br /><br />"; vbflush(); }
               
               
        }

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


All times are GMT. The time now is 12:45 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.02314 seconds
  • Memory Usage 1,749KB
  • 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
  • (3)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