wetalk network
You're here : vbfans.com / Manage Your Forums / Managing and Operating your Community / The "official" Backup Thread!

Forum : Managing and Operating your Community Discuss how to manage your staff and your users, or how to provoke discussions etc. Find out how to best operate your board

Start New Topic  Post a Reply    
 
LinkBack Thread Tools Search this Thread
  #1 (permalink)  

Posted : November 30th, 2009, 09:28 AM Default The "official" Backup Thread!
vB4Guy's Avatar
Junior Member
 
Profile :
Stats :
Join Date: Nov 2009
Posts: 4
Power: 0, Points: 10
vB4Guy is on a distinguished road
I see it time and time again, like here: Networking? where a site owner puts sweat and tears into building a community and then seeing it hacked. And it's not just that. A hosting provider could go bankrupt, an upset administrator could mass delete content. Name it, all sorts of things.

So why not build a nice resource for those who need help backing up.
Because with a good backup setup one could just take a backup, go to a new host, restore the backup and continue the site - all within hours.

Step 1: Always back your site up. This includes files and the database. And documentation with details of accounts and what not. We can use this thread to give our hints and tips, scripts and resources, to provide the best approach to how to backup, how to restore, and other best practices.

Step 2: Own what is yours. Be in control of the domain name and the hosting account. If you can host with say namecheap and change the IN A records, regardless which provider you use. You can switch provider within the hour, hardly any downtime. And if you are in control of your hosting account you can make proper backups and restore them as needed. Without running into inconvenient hosting account limits.

Step 3: Double check everything. Making a backup of a corrupt database, will not help, if you do not have a rollover solution. Running a daily script is nice, but you have to check if the results actually work. Do a test restore on another hosting account to find potential issues.

Step 4: Ask for help where needed. Don't be shy. Contact your hosting provider, your tech-friends, the forum support team, etc, for help. Post in this thread, or this forum if you have questions. The best way to avoid mistakes is to learn and understand the changes you're making to your sites.

Share your ideas, tips, code, resources, and backup approaches, solutions, etc. Let's help eachother out.
  #2 (permalink)  
Posted : November 30th, 2009, 09:36 AM
Floris's Avatar
Network Owner
Chat nickname: Floris
 
Profile :
Location: Netherlands
Age: 33 (Male)
Send a message via ICQ to Floris Send a message via AIM to Floris Send a message via MSN to Floris Send a message via Yahoo to Floris Send a message via Skype™ to Floris
Stats :
Join Date: Dec 2001
Posts: 32,539
Blog Entries: 20
Power: 50, Points: 1529
Floris has a brilliant futureFloris has a brilliant futureFloris has a brilliant futureFloris has a brilliant futureFloris has a brilliant futureFloris has a brilliant futureFloris has a brilliant futureFloris has a brilliant futureFloris has a brilliant futureFloris has a brilliant futureFloris has a brilliant future
Very nice idea, here are a few tips:

How to backup: (recommended: CLI .sql.tar.gz dumps)
http://www.vBulletin.com/go/backup

How to restore: (recommended: CLI mysql import)
http://www.vBulletin.com/go/restore

Power your site with a LAMP solution, linux operating system, apache/php and MySQL database. In my experience managing a site on linux is so much easier than on Windows. The backups have never failed me (so far).

Get a VPS or Dedicated server for your site, don't go with shared hosting. I've written a blog entry here about why I think that: http://mrfloris.com/blogs/why-shared...pgrade-to-vps/

Don't use GoDaddy for hosting or domain registration, use NameCheap for domain registration. And use a respectable hosting provider.

I agree, be in control of your domain and your hosting account. Get shell access on at least a VPS and take your backups serious.

vBulletin has a vb_backup.sh shell script you could customize to your needs and put in a daily crontab. I have customized mine to make daily backups, and use a timestamp, and delete everything older than 7 days.

Another two tips:

Update your LAMP setup frequently, fixing known bugs and security issues. The same goes for your forum software and your plugins. This saves getting hacked, or get corrupted data.

And optimize/repair your database when needed, say once a quarter, or even monthly. Avoiding database corruption and loss of data.

Keep your software and forum secure.
  #3 (permalink)  
Posted : November 30th, 2009, 09:41 AM
Freedom's Avatar
Senior Member
 
Profile :
Age: 40 (Undisclosed)
Stats :
Join Date: Mar 2003
Posts: 713
Power: 0, Points: 10
Freedom is on a distinguished road
I saw someone mention crontab, I find it so annoying to use vi or iv or whatever. I always type:


export EDITOR=pico

before I do crontab -e

This way I can just use pico to edit the crontab entry, upon control+x (save/exit) it will say 'installing new crontab'

A lot easier, for me at least.
  #4 (permalink)  
Posted : November 30th, 2009, 09:47 AM
Freedom's Avatar
Senior Member
 
Profile :
Age: 40 (Undisclosed)
Stats :
Join Date: Mar 2003
Posts: 713
Power: 0, Points: 10
Freedom is on a distinguished road

Oh, and I got Floris's vb_backup.sh script, which is customized (though very outdated version), he has:


date=`date "+%d-%m-%y-%H%M"`
database="${dbname}-${date}.sql"

And then the mysqldump ends with > /backup/${database}

And you can do find first, to see which /backup/*.sql.tgz entries are older than X day, and rm them.

delete_older="4"
find $path_to_backups -name ${dbname}*.sql.gz -type f -mtime +${delete_older} -exec rm {} \;


I hope those who know bash/perl/etc understand this enough to use it. Enjoy!

  #5 (permalink)  
Posted : November 30th, 2009, 09:50 AM
Floris's Avatar
Network Owner
Chat nickname: Floris
 
Profile :
Location: Netherlands
Age: 33 (Male)
Send a message via ICQ to Floris Send a message via AIM to Floris Send a message via MSN to Floris Send a message via Yahoo to Floris Send a message via Skype™ to Floris
Stats :
Join Date: Dec 2001
Posts: 32,539
Blog Entries: 20
Power: 50, Points: 1529
Floris has a brilliant futureFloris has a brilliant futureFloris has a brilliant futureFloris has a brilliant futureFloris has a brilliant futureFloris has a brilliant futureFloris has a brilliant futureFloris has a brilliant futureFloris has a brilliant futureFloris has a brilliant futureFloris has a brilliant future
I read the latest version of that file that I have, but it says in the header it's copyright Jelsoft and can't be distributed. I would have to write find/replace or find/add instructions. I will see what I can do.
Start New Topic  Post a Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


[register]Login!
No Account? Sign up!

[rss]Active Content!

[info]Supporters
The Geek District
Security Seals
Christopher Nadeau
teen drama forum
Tech-Unity
You?



Post on our web site today and get picked as member of the month!


Site Links and Advertisements
Partner Sites
Advertisements