Koozali.org: home of the SME Server

Flex backup doesn't appear to backup all data.

Jason Evans

Flex backup doesn't appear to backup all data.
« on: October 15, 2002, 10:03:31 AM »
Hi my flexbackup does not appear to be backing up all the data on the drives. Its only backing up / /boot.

I have 96MB of configuration files and 19GB of data on the server.

I have 2 4GB scsi drives and 1 40GB IDE drive were the data resides /dev/hda1.

I would like the data on hda1 to be included in the backup.

I've tried the command prompt tools to look at the tape but that is also not working saying that restore and dump are not in my path.

Heres a dump of the mounted volumes.

/dev/sda6 on / type ext2 (rw,usrquota,grpquota)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/sda1 on /boot type ext2 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sdb1 on /home/e-smith/files/ibays/inet type ext2 (rw)
/dev/hda1 on /home/e-smith/files/ibays/fs1 type ext2 (rw)

Heres a log of the backup.


|------------------------------------------------
| Doing level 0 backup of all using dump
| Retensioning tape...
| Rewinding & erasing tape...
| Creating index key 200210140100.21
| Tape #0
| Filesystems = / /boot
|------------------------------------------------
At block 2.
|------------------------------------------------
| File number 1, index key 200210140100.21
| Backup of: /
| Date of this level 0 backup: Mon Oct 14 01:00:21 2002
| Date of last level 0 backup: the epoch
|------------------------------------------------
| (dump -0 -b 10 -a -f - / | gzip -4) | buffer -m 3m -s 10k -u 100 -t -p 75 -B \
|  -o /dev/nst0
|------------------------------------------------
  DUMP: Date of this level 0 dump: Mon Oct 14 01:00:21 2002
  DUMP: Dumping /dev/sda6 (/) to standard output
  DUMP: Added inode 7 to exclude list (resize inode)
  DUMP: Label: /
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 550490 tape blocks.
  DUMP: Volume 1 started with block 1 at: Mon Oct 14 01:00:32 2002
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: 54.23% done at 995 kB/s, finished in 0:04
  DUMP: Volume 1 completed at: Mon Oct 14 01:10:28 2002
  DUMP: Volume 1 582080 tape blocks (568.44MB)
  DUMP: Volume 1 took 0:09:56
  DUMP: Volume 1 transfer rate: 976 kB/s
  DUMP: 582080 tape blocks (568.44MB)
  DUMP: finished in 596 seconds, throughput 976 kBytes/sec
  DUMP: Date of this level 0 dump: Mon Oct 14 01:00:21 2002
  DUMP: Date this dump completed:  Mon Oct 14 01:10:28 2002
  DUMP: Average transfer rate: 976 kB/s
  DUMP: DUMP IS DONE
Kilobytes Out 195180
|------------------------------------------------
| Backup start: Mon Oct 14 01:00:21 2002
| Backup end:   Mon Oct 14 01:10:37 2002
|------------------------------------------------
At block 19520.
|------------------------------------------------
| File number 2, index key 200210140100.21
| Backup of: /boot
| Date of this level 0 backup: Mon Oct 14 01:10:47 2002
| Date of last level 0 backup: the epoch
|------------------------------------------------
| (dump -0 -b 10 -a -f - /boot | gzip -4) | buffer -m 3m -s 10k -u 100 -t -p \
|  75 -B -o /dev/nst0
|------------------------------------------------
  DUMP: Date of this level 0 dump: Mon Oct 14 01:10:47 2002
  DUMP: Dumping /dev/sda1 (/boot) to standard output
  DUMP: Added inode 7 to exclude list (resize inode)
  DUMP: Label: /boot
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 3003 tape blocks.
  DUMP: Volume 1 started with block 1 at: Mon Oct 14 01:10:47 2002
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: Volume 1 completed at: Mon Oct 14 01:10:49 2002
  DUMP: Volume 1 2990 tape blocks (2.92MB)
  DUMP: Volume 1 took 0:00:02
  DUMP: Volume 1 transfer rate: 1495 kB/s
  DUMP: 2990 tape blocks (2.92MB)
  DUMP: finished in 1 seconds, throughput 2990 kBytes/sec
  DUMP: Date of this level 0 dump: Mon Oct 14 01:10:47 2002
  DUMP: Date this dump completed:  Mon Oct 14 01:10:49 2002
  DUMP: Average transfer rate: 1495 kB/s
  DUMP: DUMP IS DONE
Kilobytes Out 1810
|------------------------------------------------
| Backup start: Mon Oct 14 01:10:47 2002
| Backup end:   Mon Oct 14 01:10:55 2002
|------------------------------------------------
At block 19701.
|------------------------------------------------
| Rewinding...
|------------------------------------------------




How to I include /hda1 in the backup?

Thanks for any help.

Jason

Darrell May

Re: Flex backup doesn't appear to backup all data.
« Reply #1 on: October 15, 2002, 11:09:28 AM »
Flexbackup backs up filesystems based on this template:

/etc/e-smith/templates/etc/flexbackup.conf/10filesystems

It reads entries in /etc/fstab to generate what filesystems are included when 'flexbackup -fs all' is used.

Darrell

Jason Evans

Re: Flex backup doesn't appear to backup all data.
« Reply #2 on: October 16, 2002, 07:46:33 AM »
Thanks Darell, however I'm still not exactly clear on the issue..... I do have all the volumes I want backed up listed in fstab. As you can see below /dev/hda1 is listed and thats the one that I would like backed up.

I looked at the /etc/e-smith/templates/etc/flexbackup.conf/10filesystems file and it looks as though it should read fstab like you said to backup the filesystems. Why is'nt it backing up hda1? Do I have to make any changes to fstab or generate a new template or something? Thanks for the help... Jason


LABEL=/                 /                       ext2    usrquota,grpquota        1 1
LABEL=/boot             /boot                   ext2    defaults        1 2
/dev/cdrom              /mnt/cdrom              iso9660 noauto,owner,ro 0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner    0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/pts                devpts  gid=5,mode=620  0 0
/dev/sda5               swap                    swap    defaults        0 0
/dev/sdb1               /home/e-smith/files/ibays/inet  ext2
/dev/hda1               /home/e-smith/files/ibays/fs1   ext2
bash-2.05$

Darrell May

Re: Flex backup doesn't appear to backup all data.
« Reply #3 on: October 18, 2002, 12:40:41 AM »