Hi,
I am trying to backup only my system, "/boot", "/" and nothing else. I can do my /home and all data drives with a tar -cz command.
My boot drive, /dev/sda has a 2 gb /boot, a 40 gb root ("/"), an 8 gb swap and a 240 GB /home.
I also have a 640 gb /dev/sdb which has windows system and boot partitions. I do not want mondo to touch this in any way.
I tell Mondo to include just sda1 (/boot) and sda2 (/). I tell it to exclude all my large data drives and explicitly "/dev/sdb and /dev/sdb2". The process dwells for many hours backing up "bigfile #1" /dev/sdb2 which I explicitly told it to exclude. Do I need to shut down and unplug the windows drive?
When I let it run to completion, I get a 40 GB ISO from 2 partitions df tells me are less than 10 GB:
root@godzilla2:/mnt/BrianPBarnz# df
/dev/sda1 2.0G 108M 1.8G 6% /boot
/dev/sda2 40G 9.8G 28G 26% /
/dev/sda4 228G 3.7G 213G 2% /home
/dev/sdc2 877G 173G 660G 21% /tera
/dev/sdd1 2.6T 590G 1.9T 24% /r5
From the mondoarchive.log file
381:
exclude_paths = '/r5 /tera /mnt /media /home
/dev/sdb /dev/sdb2'
384: image_devs = '/dev/sdb2 /dev/sd'
[Main] libmondo-filelist.c->call_filelist_chopper#235: Examining imagedev /dev/sdb2 /dev/sd
[Main] libmondo-filelist.c->call_filelist_chopper#242:
Adding '/dev/sdb2' to biggielist
Why is it adding to the "biggielist" the exact partition I told it to exclude?
Here are my exact inputs to mondoarchive:
root>: mondoarchive
backup to: hard_disk
storage dir: /r5
Compression: maximum
ISO size: 99999
Prefix: g2.root.20090128
backup paths: /dev/sda1 /dev/sda2 (/boot and /)
NTFS partitions: none (blank, erase all input. Default was "/dev/sdb4 /dev/sdb5 /dev/sdf1 /dev/sdh1 /dev/sdh2"
Exclude paths: /r5 /tera /home /mnt /media /dev/sdb /dev/sdb4
verify backups: yes
sane kernel: yes
proceed: yes
I have a sneaking suspicion that I am missing something basic here. Any ideas?
The mondoarchive.log file (until the point where it is 5% done backing up /sdb2 with 528 minutes left) can be found at
http://Fractasia.com/mondoarchive.20090128.afu.log
I have tried translating these parameters into a coherent command line and I always get a 33 MB .ISO no matter what I backup.
mondoarchive -I "/dev/sda1 /dev/sda2" -E "/dev/sdb1 /dev/sdb2 /dev/sdb3 /dev/sdb4 /r5 /tera /home /mnt /media" -9 -N -p g2.root.20090128 -d /tera/mondo -OV -s 9g -i
root@godzilla2:/home/brianp# ll -h /tera/mondo/g2.root.20090128*
-rw-r--r-- 1 root root 33M 2009-01-28 16:50 /tera/mondo/g2.root.20090128-1.iso
The full shell output and log file drivel are at:
http://Fractasia.com/mondoarchive.co...090128.afu.log
Pulling my hair out,
BrianP
/dev/sdc is a 1 TB is a standalone, data drive.
/dev/sdd is a 3 TB RAID 5 data array which is far too large to image.
/dev/sde is an imaginary, 8gb hangover from a windows 7 disaster.
/dev/sdf, g and h are external, usb drives.
The full df and fdisk -l:
root@godzilla2:/mnt/BrianPBarnz# df
/dev/sda1 2.0G 108M 1.8G 6% /boot
/dev/sda2 40G 9.8G 28G 26% /
/dev/sda4 228G 3.7G 213G 2% /home
/dev/sdc2 877G 173G 660G 21% /tera
/dev/sdd1 2.6T 590G 1.9T 24% /r5
/dev/sdf1 912G 407G 506G 45% /media/1T_ext
/dev/sdf1 912G 407G 506G 45% /mnt/extera
/dev/sdf3 16G 172M 15G 2% /media/usb0
/dev/sdg1 1.9G 731M 1.2G 38% /media/2GB_THUMB
/dev/sdh1 357G 212G 146G 60% /media/BrianPBarnz
/dev/sdh1 357G 212G 146G 60% /mnt/BrianPBarnz
root@godzilla2:/mnt/BrianPBarnz# fdisk -l
Disk /dev/sda: 300.0 GB, 300069052416 bytes
255 heads, 63 sectors/track, 36481 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0001d63d
Device Boot Start End Blocks Id System
/dev/sda1 * 1 262 2104483+ 83 Linux
/dev/sda2 263 5484 41945715 83 Linux
/dev/sda3 5485 6529 8393962+ 82 Linux swap / Solaris
/dev/sda4 6530 36481 240589440 83 Linux
Disk /dev/sdb: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0007175a
Device Boot Start End Blocks Id System
/dev/sdb1 2 2550 20474842+ f W95 Ext'd (LBA)
/dev/sdb2 * 2551 40795 307202962+ 7 HPFS/NTFS
/dev/sdb3 40796 43345 20482048 7 HPFS/NTFS
/dev/sdb4 43346 77825 276960600 7 HPFS/NTFS
/dev/sdb5 2 2550 20474811 7 HPFS/NTFS
WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xddbdcbed
Device Boot Start End Blocks Id System
/dev/sdc1 1 121602 976762583+ ee GPT
WARNING: GPT (GUID Partition Table) detected on '/dev/sdd'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdd: 2999.9 GB, 2999967547392 bytes
255 heads, 63 sectors/track, 364725 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdd1 1 267350 2147483647+ ee GPT
Disk /dev/sde: 8589 MB, 8589934080 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/sde doesn't contain a valid partition table
Disk /dev/sdf: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x19b7bd51
Device Boot Start End Blocks Id System
/dev/sdf1 1 119051 956277126 7 HPFS/NTFS
/dev/sdf2 119052 119537 3903795 82 Linux swap / Solaris
/dev/sdf3 * 119538 121601 16579080 83 Linux
Disk /dev/sdg: 2032 MB, 2032664576 bytes
64 heads, 63 sectors/track, 984 cylinders
Units = cylinders of 4032 * 512 = 2064384 bytes
Disk identifier: 0xe957e957
Device Boot Start End Blocks Id System
/dev/sdg1 * 1 983 1981696+ 6 FAT16
Disk /dev/sdh: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe6c69652
Device Boot Start End Blocks Id System
/dev/sdh1 1 46531 373760226 7 HPFS/NTFS
/dev/sdh2 46532 48641 16948575 7 HPFS/NTFS
root@godzilla2:/mnt/BrianPBarnz#