Re: DUMP script ..
- From: John Thompson <john@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 28 Dec 2006 11:11:01 -0600
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)
.
- Follow-Ups:
- Re: DUMP script ..
- From: LB
- Re: DUMP script ..
- References:
- DUMP script ..
- From: LB
- DUMP script ..
- Prev by Date: Re: Time out with securCRT 4.0 from Windows XP to RedHat linux
- Next by Date: resize directory index/journal
- Previous by thread: DUMP script ..
- Next by thread: Re: DUMP script ..
- Index(es):
Relevant Pages
|