August 15, 2014

SafeCopy cli backup and recovery

Found this nice backup image software, thats pretty simple if you read the docs

First you have to image the drive

parted -l (find your harddrive /dev path)
safecopy -stage1 /dev/yourdrive hddimage.img

safecopy -stage2 /dev/yourdrive hddimage.img (if stage1 has errors)
safecopy -stage3 /dev/yourdrive hddimage.img (if stage2 has errors)

now you can mount it

parted hddimage.img
unit b

write down the start number of the parition you want to mount
print

quit
Now change START to the number you write down earlier to mount that partition
Dont forget to remove the B
mount -o loop,ro,offset=START hddimage.img /mnt/rabbit

DigitalOcean Referral Badge
Keep my site online & receive a $200 60-day credit at DigitalOcean for your VPS Hosting
Cheaper Games on Instant-Gaming
Creative Commons Licence