z0mbix
March 30th, 2006, 10:12
I wanted to have a full image backup of my WRAP in preparation for upgrading to OpenBSD 3.9 so I did the following on my OpenBSD server:
# nc -l 9000 | dd of=/usr/data/Backups/wrap_backup-210306.img
Then on the wrap:
# dd if=/dev/rwd0a | nc 192.168.20.8 9000
35 mins later and I have a 977MB image on my server. Next I wanted to check if it was actually OK so I did the following:
# sudo mkdir /mnt/wrap-image
# sudo vnconfig -c /dev/svnd0c /usr/data/Backups/wrap_backup-210306.img
# sudo mount -o ro /dev/svnd0c /mnt/wrap-image/
I could then view the filesystem fine, and all looks OK so to finish up I did:
# sudo umount /dev/svnd0c
# sudo vnconfig -u /dev/svnd0c
The question is, if for any reason my CF card becomes bad/corrupted, can I just dd this image back to a new 1GB CF card and it will boot just as it did before? I don't have a spare at the moment to test this. I should have my hands on one sometime next week.
Cheers z0mbix
# nc -l 9000 | dd of=/usr/data/Backups/wrap_backup-210306.img
Then on the wrap:
# dd if=/dev/rwd0a | nc 192.168.20.8 9000
35 mins later and I have a 977MB image on my server. Next I wanted to check if it was actually OK so I did the following:
# sudo mkdir /mnt/wrap-image
# sudo vnconfig -c /dev/svnd0c /usr/data/Backups/wrap_backup-210306.img
# sudo mount -o ro /dev/svnd0c /mnt/wrap-image/
I could then view the filesystem fine, and all looks OK so to finish up I did:
# sudo umount /dev/svnd0c
# sudo vnconfig -u /dev/svnd0c
The question is, if for any reason my CF card becomes bad/corrupted, can I just dd this image back to a new 1GB CF card and it will boot just as it did before? I don't have a spare at the moment to test this. I should have my hands on one sometime next week.
Cheers z0mbix