Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 15th, 2003, 10:43 AM
English Guy English Guy is offline
Senior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Boston MA
Posts: 100 English Guy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 8 sec
Reputation Power: 0
Backing Up WebServer & MySQL

I have multiple Virtual Hosts with multiple MySQL databases. What is the best way to back up webserver directories & SQL databases? Is there an easy way to mirror directories from one machine to another?

Reply With Quote
  #2  
Old October 15th, 2003, 07:10 PM
Hero Zzyzzx's Avatar
Hero Zzyzzx Hero Zzyzzx is offline
11
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jul 2001
Location: Lynn, MA
Posts: 4,635 Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level)Hero Zzyzzx User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 23 h 44 m 19 sec
Reputation Power: 77
Send a message via AIM to Hero Zzyzzx
There are a lot of ways to backup a system.

rsync over ssh is about as easy, secure and resource-frugal as it gets.

Code:
rsync -auvz -e ssh user@remote.host.com:/directory/to/backup/ /local/directory

put in a cron job in hosts that have exchanged public keys and it will automatically back remote.host.com to the local system. Rsync is smart enough to only send the parts of files that have changed, as well. Very fast.

mysqldump your databases into a path above, and you've got your mysql backups as well.

Personally, I use a perl script that wraps around mysqldump, tar, gzip and ncftpput for my backups.

Reply With Quote
  #3  
Old October 15th, 2003, 08:14 PM
English Guy English Guy is offline
Senior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Boston MA
Posts: 100 English Guy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 8 sec
Reputation Power: 0
thanks

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > Backing Up WebServer & MySQL


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT