Debian OS Backup

Clean
Clean
DocumentEmail

MicrosoftInternetExplorer4

/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}

We are running linux with Debian OS.  I am new
to using linux and debian.  Can I use an external hard drive to backup
the operating system and files on our linux servers?  If so, how do I create a full backup of the
system for disaster recovery?  Is it easy
to restore if there is a need?

Is there documentation somewhere that I can read that
explains how to do this?  Thanks for your
help in advance.

 

Jacob

 

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Debian OS Backup

> Is there documentation somewhere that I can read that explains how to do
> this? Thanks for your help in advance.
Hi,
u can see: rsync or do:

apt-cache search backup

Pol

--

Debian OS Backup

Jacob Ramirez wrote:
> We are running linux with Debian OS. I am new to using linux and
> debian. Can I use an external hard drive to backup the operating system
> and files on our linux servers? If so, how do I create a full backup of
> the system for disaster recovery? Is it easy to restore if there is a need?
>
> Is there documentation somewhere that I can read that explains how to do
> this? Thanks for your help in advance.
>

ondo and mondo-doc packages can do the job for you. Other options are
dar, bacula, dirvish, afbackup, etc.
PS: sorry, sent to OP earlier!

--

Debian OS Backup

On Fri, 08 Jun 2007 11:34:52 -0400
KS wrote:

> Jacob Ramirez wrote:
> > We are running linux with Debian OS. I am new to using linux and
> > debian. Can I use an external hard drive to backup the operating system
> > and files on our linux servers? If so, how do I create a full backup of
> > the system for disaster recovery? Is it easy to restore if there is a need?
> >
> > Is there documentation somewhere that I can read that explains how to do
> > this? Thanks for your help in advance.
> >
>
> ondo and mondo-doc packages can do the job for you. Other options are
> dar, bacula, dirvish, afbackup, etc.
> PS: sorry, sent to OP earlier!

'aptitude search backup' returns a couple of dozen possibilities.

Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator

--

Debian OS Backup

On Fri, Jun 08, 2007 at 09:54:25AM -0500, Jacob Ramirez wrote:
> We are running linux with Debian OS. I am new to using linux and
> debian. Can I use an external hard drive to backup the operating system
> and files on our linux servers? If so, how do I create a full backup of
> the system for disaster recovery? Is it easy to restore if there is a
> need?
> Is there documentation somewhere that I can read that explains how to do
> this? Thanks for your help in advance.

There are many ways to do backups. Here's how I do it.

1. look at what I need to restore from scratch: netinst media for
the current OS (Etch) for the current archetecture (i386 and
amd64).

2. To what data do I need instant access even in the event of
catastrophy? Put it in plain text in a directory of the backup
media (CD, disk, USB stick, whatever).

3. To what data do I need access in order to install successfully?
For me its things like /etc/network/interfaces, ppp configs and
chatscripts (dial-up internet), /etc/hosts, /etc/inittab. Put
this in plain text in a directory on the backup media.

4. .tgz tarball of /etc

5. Partition info: output of /sbin/fdisk -lu and /sbin/sfdisk -d
for each drive. Also output of

du -c -si --max-depth=1 /*
df --si

Save as plain text on the backup media.

6. Both a list of manually installed packages and all installed
packages. Output of:
dpkg --get-selections
aptitude search `~i!~M'

7. /boot/grub/menu.lst

8. Copy my own list of hardware, instalation logs (what I did to
get something working).

9. tarball that includes:
/etc/, /usr/local/, /root/, /var/local/, /home/
but excudes:
/var/local/bacup/

All this gets saved to /var/local/backup/$HOSTNAME and then gets saved
to various media (mostly CD and USB stick). You could also use a
removable hard drive. You want a filesystem that can be read by most
computers/os, which means vfat.

I don't backup the whole system since everything that I don't backup
belongs to dpkg. If you want to have a backup of all the debs, I'd
suggest that you create an apt-proxy repository on your removeable
drive.

Good luck.

Doug.

--

Debian OS Backup

Jacob Ramirez wrote:
> We are running linux with Debian OS. I am new to using linux and
> debian. Can I use an external hard drive to backup the operating system
> and files on our linux servers? If so, how do I create a full backup of
> the system for disaster recovery? Is it easy to restore if there is a
> need?
> Is there documentation somewhere that I can read that explains how to do
> this? Thanks for your help in advance.

I like rdiff-backup[1]. From the man page:

rdiff-backup is a script, written in python(1) that backs up one direc‐
tory to another. The target directory ends up a copy (mirror) of the
source directory, but extra reverse diffs are stored in a special sub‐
directory of that target directory, so you can still recover files lost
some time ago. The idea is to combine the best features of a mirror
and an incremental backup. rdiff-backup also preserves symlinks, spe‐
cial files, hardlinks, permissions, uid/gid ownership, and modification
times.

If you want an image of a complete partition, try partimage[2].

Disaster restore using a live CD to run rdiff-backup, partimage, etc. There are
many around (eg Knoppix), or make your own using Debian Live[3]. Alternatively,
keep a second, small bootable system on your HDD.

[1] http://rdiff-backup.nongnu.org/
[2] http://www.partimage.org/Main_Page
[3] http://wiki.debian.org/DebianLive/

--
Chris.

--

Debian OS Backup

Jacob Ramirez wrote:
> We are running linux with Debian OS. I am new to using linux and
> debian. Can I use an external hard drive to backup the operating system
> and files on our linux servers? If so, how do I create a full backup of
> the system for disaster recovery? Is it easy to restore if there is a
> need?

Note that the use of external drives like USB for "disaster recovery"
is not a very good idea. You need to store your backups remote from the
computer being backed up, and you need at least three backups used in
rotation. So, using a USB drive is expensive and subject to losing
data during transport.

> Is there documentation somewhere that I can read that explains how to do
> this? Thanks for your help in advance.

I don't know of any.

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!

--

Debian OS Backup

> Jacob Ramirez wrote:
> We are running linux with Debian OS. I am new to using linux and
> debian. Can I use an external hard drive to backup the operating system
> and files on our linux servers? If so, how do I create a full backup of
> the system for disaster recovery? Is it easy to restore if there is a
> need?

The most reliable backup/disaster recovery tool I've found, that general
technical staff can deal with, is BackupEdge from www.backupedge.com.
I've had great success with just about any SCSI tape drive and also had
success with the ATAPI REV drives.
I have not been able to get a SATA REV drive working in tandem with SATA
hard drives on any linux flavor or kernel.
Get the backup device working with tar...
Install and configure BackupEdge and setup your backup schedule.
Create a RecoverEdge boot CD image and write it to CD.
Make a Master Backup.
Boot from the RecoverEdge CD.
Test the media (this will access the backup device, list the content, mount
the filesystems and write a "success" flag in Edge's configuration on the
hard drive).
Remove the boot CD and store it in a safe place.
We have our clients use 5 tapes/disks in a daily rotation, 3 in a monthly
and have 2 spares for use after any failure.
Never use a previously good tape after any failure. - Always use a new/spare
one...
Enjoy,
Larry Irwin

--

Debian OS Backup

On Fri, Jun 08, 2007 at 01:03:33PM -0500, Mike McCarty wrote:

> Note that the use of external drives like USB for "disaster recovery"
> is not a very good idea. You need to store your backups remote from the
> computer being backed up, and you need at least three backups used in
> rotation. So, using a USB drive is expensive and subject to losing
> data during transport.
>

What do you suggest? Tape drives are pricy compared to a 2.5" laptop
drive in something like an addonics jupiter ruggedized enclosure that
claims to protect the drive to a 1m drop. They're small enough to fit
in a standard small bank safety deposit box.

Doug.

--

Debian OS Backup

Douglas Allan Tutty wrote:
> On Fri, Jun 08, 2007 at 01:03:33PM -0500, Mike McCarty wrote:
>
>
>>Note that the use of external drives like USB for "disaster recovery"
>>is not a very good idea. You need to store your backups remote from the
>>computer being backed up, and you need at least three backups used in
>>rotation. So, using a USB drive is expensive and subject to losing
>>data during transport.
>>
>
>
> What do you suggest? Tape drives are pricy compared to a 2.5" laptop

Tape drives are indeed pricey. But the tapes are more robust than
discs. I use CDROMs. But I can fit a backup on just three of them.
If you are backing up many many gigs, then your best bet is still
a tape drive.

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!

--

Debian OS Backup

Jacob Ramirez wrote in Article <000001c7a9dc$e840d250$8800a8c0@jramirez>
posted to gmane.linux.debian.user:

> We are running linux with Debian OS. I am new to using linux and
> debian. Can I use an external hard drive to backup the operating system
> and files on our linux servers?

Of course.

> If so, how do I create a full backup of the system for disaster recovery?

Depends on the method. Faubackup is capable of restoring a system from an
installed base system and your backup.

> Is it easy to restore if there is a need?

With faubackup, it's just a matter of copying the files from the backup back
into the proper locations in the tree.

> Is there documentation somewhere that I can read that explains how to do
> this? Thanks for your help in advance.

Which package?

--
Paul Johnson
Email and IM (XMPP & Google Talk):

--

Syndicate content