The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. September 19, 2019, 06:15:10 AM

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Backing Up Your Site  (Read 3714 times)
cdc
Expert
****
Offline Offline

Posts: 105


View Profile
« on: May 04, 2007, 03:14:26 AM »

What's the best way to back up your website?

I've just been tarring up the directory and downloading it to my home PC. Then I back up the database through phpMyAdmin Export and save that to my home PC as well.

Is there a better way that I'm missing?
Logged

Will code for food.
thedarkness
Lifer
*****
Offline Offline

Posts: 585



View Profile
« Reply #1 on: May 04, 2007, 04:15:36 AM »

I use "mysqldump -A" to copy the database then "tar czvf backup.tgz /var/www/html/*" or whatever so pretty much the same.

Cheers,
td
Logged

"I want to be the guy my dog thinks I am."
 - Unknown
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« Reply #2 on: May 04, 2007, 07:31:24 AM »

I cron the tar.gz ing of my sites, but I have a master/slave relationship between my production database and a backup machine offsite. A cron job halts the slave, then backs IT up, then restarts the slave - so my production database is never offline and my backup is copisetic. Because of this arrangement I also have a backup that is always right up to date.

/p
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
nutballs
Administrator
Lifer
*****
Offline Offline

Posts: 5627


Back in my day we had 9 planets


View Profile
« Reply #3 on: May 04, 2007, 08:47:49 AM »

get a server that has free backup space Smiley

1and1

but yea, the way your doing it works. if its too slow, and you have multiple servers, you can backup 1 server to another, and vice versa. the likelyhood of 2 servers blowing up at the same time is close to 0.
Logged

I could eat a bowl of Alphabet Soup and shit a better argument than that.
thedarkness
Lifer
*****
Offline Offline

Posts: 585



View Profile
« Reply #4 on: May 04, 2007, 06:05:24 PM »

my backup is copisetic

Sorry to hear that, hope you get better soon  ROFLMAO  ROFLMAO

Cheers,
td
Logged

"I want to be the guy my dog thinks I am."
 - Unknown
Pages: [1]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!