[mythtv-users] How is this pricing possible?
Will Dormann
wdormann at gmail.com
Wed Feb 23 19:32:48 UTC 2011
On 2/23/11 12:32 PM, Mark wrote:
>> On 2/22/11 2:49 PM, John Drescher wrote:
>
>>
>> And obviously, have backups. In the case of my mythtv box, I have a
>> script that dd's the mbr, dumps the /boot filesystem and xfsdumps the
>> root. For creating a rescue disc, it makes a bootable ISO based on
>> sysresccd that contains the backup files, pads the ISO with extra
>> error-correcting data via dvdisaster, and then burns it onto a DVD-RW.
>> It's enough to go from bare metal to full system restore.
>>
>>
>
> I need to setup a solution like that. Feel like sharing? :)
Sure thing. The sysresccd iso is obtained from:
http://www.sysresccd.org/
Just modify the scripts to use your appropriate paths and dump utilities
(e.g. if you don't use xfs). mbr.txt and xfsrestore.txt are just some
notes that I have for restoring those respective backups. (you should
be able to google for it)
-WD
----- begin backup.sh -----
#!/bin/sh
backupdir=/PATH/TO/BACKUP/FILES/
mkdir -p $backupdir
echo Copying documentation...
cp mbr.txt $backupdir
cp xfsrestore.txt $backupdir
echo Backing up MBR...
dd if=/dev/sda of=$backupdir/mythbuntu-mbr.bin bs=512 count=1
echo Dumping boot filesystem...
dump -0uf $backupdir/boot.dump /boot
echo Dumping root xfs filesystem...
xfsdump -l0 - / | gzip > $backupdir/mythbuntu.dgz
----- end backup.sh -------
----- begin burnbackup.sh -----
#!/bin/sh
backupdir=/PATH/TO/BACKUP/FILES/
cd /mnt/store/rescue
# Copy systemrescuecd iso
ionice -c 3 cp sysrec.iso recovery.iso
# Add mythbuntu backup files
ionice -c 3 growisofs -M recovery.iso -J -R $backupdir
# Create dvdisaster redundancy
ionice -c 3 dvdisaster -c -mRS02 -i recovery.iso
# Burn to disc
growisofs -dvd-compat -Z /dev/scd0=/mnt/store/rescue/recovery.iso
----- end burnbackup.sh -------
More information about the mythtv-users
mailing list