vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   How often do you take backups? (https://vborg.vbsupport.ru/showthread.php?t=206937)

veenuisthebest 02-28-2009 07:51 PM

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

Lynne 02-28-2009 09:47 PM

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.

Dismounted 03-01-2009 07:53 AM

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.

veenuisthebest 03-02-2009 02:04 AM

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

Videx 03-02-2009 02:28 AM

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.

Dismounted 03-02-2009 04:51 AM

Quote:

Originally Posted by veenuisthebest (Post 1758144)
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/

veenuisthebest 03-02-2009 06:09 AM

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 (Post 1758155)
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..

Marco van Herwaarden 03-02-2009 07:36 AM

Quote:

Originally Posted by veenuisthebest (Post 1757131)
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.

tansu 03-02-2009 07:50 AM

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..

wolfiejp 03-02-2009 10:29 AM

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

Angel-Wings 03-02-2009 11:59 PM

DB backups are made in realtime to a backup server, there a dump is created every 12 hours, compressed awaiting download or rsync.

A small home server connects once a day to the backup DB to sync everything and uses rsync to download modified or new files.
These modified files are kept in a directory so I've still the original installation, modified files of the last half year / one month / 1 up to 7 days in case I need them.

In a worst case backups are 12 hours old.

Brandon Sheley 03-03-2009 12:08 AM

I use the mod that creates a backup once a day, and I transfer those on to the HD every few days
I do have a few older CD's with a DB on them, but they are pretty old.


All times are GMT. The time now is 11:25 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.01754 seconds
  • Memory Usage 1,737KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete