LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-01-2010, 09:37 PM   #1
johnsan
LQ Newbie
 
Registered: Mar 2010
Location: Sydney, Australia
Distribution: Debian & CentOS
Posts: 15

Rep: Reputation: 0
Backup/Ghost live debian server


Hi everyone,

I have a live production server with different partitions that I would like to backup/ghost so that if the server crashes, I would have an easy way to restore it.

My server is running Debian Lenny, it's got 2 x 2TB hard disks in RAID1 mode.

Filesystem Size Used Avail Use% Mounted on
/dev/sda5 4.6G 1002M 3.4G 23% /
tmpfs 1.7G 0 1.7G 0% /lib/init/rw
udev 10M 744K 9.3M 8% /dev
tmpfs 1.7G 0 1.7G 0% /dev/shm
/dev/sda1 122M 15M 102M 13% /boot
/dev/sda6 4.6G 289M 4.1G 7% /home
/dev/sda8 942M 18M 877M 2% /tmp
/dev/sda9 1.8T 3.9G 1.7T 1% /var

As you can see, total disk usage is about 5GB. I can transfer that to another server on the network.

What would be the best way to perform a complete backup without stopping the server and how could I restore that backup in case of emergency ?

After browsing the entire Web, I couldn't find the answer that would make my life easy, so I give it a try here

Many thanks in advance.

Jonathan

Last edited by johnsan; 11-01-2010 at 10:26 PM.
 
Old 11-01-2010, 10:38 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
You can use something simple like dd piped to nc but you may not end up with a consistent backup if you run a database unless you quiesce it. You'll also want to make sure you don't back up the virtual filesystems like /proc, /sys etc.

cheers
 
Old 11-02-2010, 03:16 PM   #3
jefro
Guru
 
Registered: Mar 2008
Posts: 11,521

Rep: Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404
You need a filesystem that supports live state and an app that can support live backups.

Might be possible to setup a failover but I never looked into that as a backup plan.

Sure wish the linux people would get zfs going.
 
Old 11-07-2010, 09:40 PM   #4
johnsan
LQ Newbie
 
Registered: Mar 2010
Location: Sydney, Australia
Distribution: Debian & CentOS
Posts: 15

Original Poster
Rep: Reputation: 0
After reading a few articles/forum, I have resolved to not do a live backup. Too risky. I will try to use a liveCD and transfer the image over ftp to another server running FileZilla.

What would you recommand me as for the backuping method/software?
 
Old 11-07-2010, 10:43 PM   #5
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Clonezilla live cd is always good
 
Old 11-08-2010, 11:31 AM   #6
jefro
Guru
 
Registered: Mar 2008
Posts: 11,521

Rep: Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404
See also ping.
 
Old 11-08-2010, 10:59 PM   #7
johnsan
LQ Newbie
 
Registered: Mar 2010
Location: Sydney, Australia
Distribution: Debian & CentOS
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks, I'll try Clonezilla first and might attempt Ping (but it's looks a bit complicated to use at first glance).
 
  


Reply


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup live system - home server i92guboj Linux - Server 3 09-11-2009 02:46 PM
Best Backup/Ghost - for Fedora 7 PastorWirl Fedora 2 11-16-2007 10:15 AM
Total backup.. (Ghost) Snouser Linux - General 4 03-29-2007 09:11 AM
Ghost software : Linux Ghost server NL-Stitch Linux - Newbie 18 02-02-2007 10:55 PM
A backup software like windows ghost alyks Linux - Software 7 10-28-2004 02:40 PM


All times are GMT -5. The time now is 09:29 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration