Go Back   vb.org Archive > Community Discussions > Forum and Server Management
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-28-2009, 07:51 PM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How often do you take backups?

Hii!

This backup thing is a real pain, but most important too. I understand most hosts on managed server take backups everyday but we all like to keep our own copy as well.

So I am looking for opinions/views of people regarding backing up of their forum databases. Please let me know:-

1. How often do you take backups? Is it everyday, weekly, monthly, yearly or never.

2. Do you burn the backup .sql/.gz regularly onto a CD/DVD etc or just prefer to keep it in on your hard drive.

3. Do you turn off your forum while taking backups. I have read that turning off is recommeded to maintain integrity of the backup, specially on larger forums where continous activity is going on.

4. Just before I take a backup, I first clear all my logs (cp, moderator, scheduled task log) and run an "optimize db" from admincp, only then I take a backup. Is this a good practise?

5. Anything else that needs to be taken care of, while backups?

Thanks
Reply With Quote
  #2  
Old 02-28-2009, 09:47 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I take a backup of the database every night and rsync it to an offsite backup server afterwards. Every night I also rsync all our files (attachments, avatars, php files, etc.) to the offsite server. I also keep a copy of all my vb files here at home.
Reply With Quote
  #3  
Old 03-01-2009, 07:53 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a cronjob running that removes DB backups older than 7 days, then creates a DB backup, and rsync's it off to another server. This runs every night. Files are backed up on Wednesdays and Sundays. The cronjobs also run a PHP script which turns the forum off while doing this.
Reply With Quote
  #4  
Old 03-02-2009, 02:04 AM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do we rsync databases to an offsite backup server? Is there some tool/program to do this? Which one do you use?

Does files also require rsync? How much time does the whole process take each day, say on a 150MB database and 1gb files.

Thanks
Reply With Quote
  #5  
Old 03-02-2009, 02:28 AM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For my db, I use the script at vb.com here, and use an FTP batch file to automatically download it daily. Once at home, I keep copies of my backups folder on alternate hard drives - one being taken off premises monthly.

For my home directory, I use cpanel once a month. Again, downloading the whole thing to my backups/ folder.
Reply With Quote
  #6  
Old 03-02-2009, 04:51 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by veenuisthebest View Post
How do we rsync databases to an offsite backup server? Is there some tool/program to do this? Which one do you use?
rsync is a way to transfer files: http://samba.anu.edu.au/rsync/
Reply With Quote
  #7  
Old 03-02-2009, 06:09 AM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh okay. thanks for the link! So with rsync, the differences in the files (if any changed, or new added, or removed) are saved to another server, and not the whole data everytime, is that correct?

Does rsync works for database backup files too, like .sql or .gz? How does it save the differences?

Do you also test your database backups sometimes, if it is working fine or not. How often?

--------------- Added [DATE]1235983436[/DATE] at [TIME]1235983436[/TIME] ---------------

Quote:
Originally Posted by Videx View Post
For my db, I use the script at vb.com here, and use an FTP batch file to automatically download it daily. Once at home, I keep copies of my backups folder on alternate hard drives - one being taken off premises monthly.

For my home directory, I use cpanel once a month. Again, downloading the whole thing to my backups/ folder.
this looks good. thank you videx.

Not sure what you mean by FTP batch files?? Do you mean cron jobs at cpanel? How do we schedule a cron if we don't use any panels. And after backups being downloaded into backups/ folder, do you download it daily onto your hard-disk? Is there an automated system for that too lol? How much time does it normally take?

Thanks..
Reply With Quote
  #8  
Old 03-02-2009, 07:36 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by veenuisthebest View Post
4. Just before I take a backup, I first clear all my logs (cp, moderator, scheduled task log) and run an "optimize db" from admincp, only then I take a backup. Is this a good practise?
Optimising has no influence on the backup (or the size of the backup). Also you should not be running any maintenance on the database unless it is needed. Maintenance routines can not only optimise or repair a database, it can also do damage.
Reply With Quote
  #9  
Old 03-02-2009, 07:50 AM
tansu's Avatar
tansu tansu is offline
 
Join Date: Apr 2006
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I backup once a week with mysqldumper. My database is about 400 MB in gz format. And I changed server 4 times till today using these backups.. No problem at all..
Reply With Quote
  #10  
Old 03-02-2009, 10:29 AM
wolfiejp wolfiejp is offline
 
Join Date: Oct 2008
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

daily dbase backups and full site backups mon wed fri and sat, offsite full backup once a week.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:23 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.06571 seconds
  • Memory Usage 2,260KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete