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)

thenashy 07-10-2013 08:04 AM

Quote:

Originally Posted by Paul M (Post 2426825)
Your web server doesnt have permission to write the files.

It's my web server. And it does have permission.

Paul M 07-11-2013 12:34 AM

Quote:

Originally Posted by thenashy (Post 2433030)
And it does have permission.

If you are getting a No Permission error then your server disagrees with you.

nick-harper 07-11-2013 01:00 PM

Is there a way to make it so it only keeps the last 5 backups so it doesnt fill the server?

djbaxter 07-11-2013 01:24 PM

Yes, or at least to keep only the last 7 backups. Someone else gave me this solution a while back in this thread.

AdminCP >> Settings >> Options >> vBulletin Automatic Backup

Combine Files
Set to yes to combine all tables into one backup file. = Yes

Date Format
Backup file date format (See http://uk.php.net/date). = N

Files Prefix
Backup files prefix, this is applied to all files. = FORUMNAME

GZip Files
Attempt to GZip the backup files after they have been saved. This may or may not work depending on your server environment. = Yes

What this does is create a series of backups with the format

FORUMNAME-digit-Full-Backup.sql.gz

where digit is the number of the day of the week, i.e., 1 through 7.

Once that change is made to options, as the backups are created they are saved with that format. If the filename doesn't exist, it is created. If the filename already exists, it is overwritten by the new backup. Thus, you always have the latest 7 days of backups and no more.

This works perfectly. I've been using it for several months now.

Paul M 07-12-2013 10:36 PM

I posted the some thing a long while back, but I think I suggested using "l" (lowercase L) which is the full name of the day of the week (i.e. Sunday, Monday etc).

djbaxter 07-13-2013 12:17 AM

Quote:

Originally Posted by Paul M (Post 2433417)
I posted the some thing a long while back, but I think I suggested using "l" (lowercase L) which is the full name of the day of the week (i.e. Sunday, Monday etc).

That would probably be more clear... if I'd known you could do that. :o

Paul M 07-13-2013 02:40 PM

As an aside, I currently use the week number (W).

This means that I always have a current daily backup, and it "automatically" leaves me with a weekly backup as the number changes at the start of each week.

djbaxter 07-13-2013 02:53 PM

But that would mean you would have 52 backups at any one time, wouldn't it?

smirkley 07-13-2013 03:02 PM

I just use the date of the month, so I will always have at least 30 backups consecutive. I dont need anything older and if I feel I do, I should be backing up at least once a month all backup files. But I dont.

Paul M 07-13-2013 09:15 PM

Quote:

Originally Posted by djbaxter (Post 2433500)
But that would mean you would have 52 backups at any one time, wouldn't it?

Well if you kept them all on the server, yes.

I dont, I download them once a month and then delete older ones.


All times are GMT. The time now is 08:28 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.02017 seconds
  • Memory Usage 1,740KB
  • 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
  • (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