Re: DUMP script ..



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)

.



Relevant Pages

  • RE: Hangs during "dump" with 6.0 and current ports
    ... Due to lack of memory I had added an additional swap-file via mdconfig 3 ... filesystem with snapshots active and the swapfile is in the same filesystem ... Hangs during "dump" with 6.0 and current ports ... Maybe you need some more swap space? ...
    (freebsd-questions)
  • Re: dumping a samba directory
    ... prog like tar do you have any recommendations on which type of archiver ... you can give dump the ... but it actually bypasses the normal filesystem ... Samsung printers and HOSTING packages ...
    (freebsd-questions)
  • RE: RAID gotchas!
    ... or send me the documentation on ... They claim three advantages when using dump, but they are rather weak, ... the files in my backup, not just restore them. ... read-only image of the filesystem to run dump on. ...
    (Fedora)
  • Re: RAID gotchas!
    ... Best regards. ... They claim three advantages when using dump, ... read-only image of the filesystem to run dump on. ... I can post some documentation describing how I set up the backup and the script which will keep my backup up-to-date). ...
    (Fedora)
  • Re: RAID gotchas!
    ... Best regards. ... They claim three advantages when using dump, ... filesystem; well, you can mount read-only or noatime. ... I'd trust the latter for my backups. ...
    (Fedora)