Re: DUMP script ..
- From: "LB" <geekfromny@xxxxxxxxx>
- Date: 28 Dec 2006 10:57:51 -0800
John,
So if I monted another drive to this box and it was hdb, wouldnt I be
able to do something simple as:
dump 0au -f /dev/dhb.`date +%Y%m%d` /
I have tried such scenario and it doesnt seem to work out .. I get
errors like below when i go to the mount point to see the contents of
the drive
############
EXT3-fs error (device hdb2): ext3_readdir: bad entry in directory #2:
rec_len is smaller than minimal - offset=0, inode=0, rec_len=0,
name_len=0
##########
any suggestions?
GNY
John Thompson wrote:
On 2006-12-28, LB <geekfromny@xxxxxxxxx> wrote:
I'm looking for a script that will utilize the DUMP command and can
completly back up a CentOS system in the event of a hard drive failure
using the restore command. This dump will not be done to tape, but to
another hard drive in the box. I will then have the dump archive moved
to a samba share where it will be backed up.
[...]
I just need a script that can basically backup a whole system and can
be restored just as easilly. The system is up and running as I said its
CentOS and its running at full opertation and live.
The important thing to remember about dump is that it only works at the
filesystem level. So your script will need to invoke dump separately for
each filesystem you wish to backup, e.g.:
dump 0au -f /path/to/your/backup/file/root.`date +%Y%m%d` /
dump 0au -f /path/to/your/backup/file/opt.`date +%Y%m%d` /opt
dump 0au -f /path/to/your/backup/file/home.`date +%Y%m%d` /home
This will do a level0 (complete filesystem) dump of the "/", "/opt" and
"/home" filesystems, and store each dump in a file named using the name
of the filesystem and date the dump was created. Dump can also do
incremental dumps, which are far less time consuming since only the
files added or changed since the latest level0 dump will be backed up.
--
John (john@xxxxxxxxxxx)
.
- References:
- DUMP script ..
- From: LB
- Re: DUMP script ..
- From: John Thompson
- DUMP script ..
- Prev by Date: Re: xgl nvidia fedora 6, looks like i am missing something
- Next by Date: Re: DUMP script ..
- Previous by thread: Re: DUMP script ..
- Next by thread: Re: DUMP script ..
- Index(es):
Relevant Pages
|