[solved] What is best disaster recovery backup method?

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

[solved] What is best disaster recovery backup method?

Postby bt101 » Sun Aug 14, 2011 8:01 am

I understand that a simple power outage can destroy the Archlinux installation.
What is the best method of backup for disaster recovery?

I assume you can put the USB drive in another machine and do a bit copy (dd).
Will that work if you restore it back to the same drive?
Will that work is you restore it back to a different drive (different size)?

If you do some sort of file backup, can that be restored and made bootable?

I don't have a good understanding of what is on the USB drive. I know that on a "regular" PC linux install, you can restore "files" back to the hard drive but you need to do a little more to make it bootable (so the machine can locate the physical spot on the disk to boot). Is it the same thing with the ARM linux installed on the USB drive, or does the plug device boot from internal flash first and then just look for "files" (not physical location) on the USB drive? Of course, this would make a difference on the type of backup restore that you can do. If the plug device doesn't care where things are stored on the USB drive, it would allow a simple file restore to recover.
Last edited by bt101 on Thu Aug 18, 2011 12:26 am, edited 1 time in total.
bt101
 
Posts: 10
Joined: Thu Aug 11, 2011 2:52 am

Re: What is best disaster recovery backup method?

Postby slycat » Mon Aug 15, 2011 9:53 pm

I've kept all the linux files on one partition and all the other goodies like media on a storage partition. My linux part is <5gb so my method is to backup my linux part to a tarball before I run "pacman -Syu", that way should anything go awry I can un-tar the contents back into the partition. Here's a quick script I made to save time typing it all each week:
$this->bbcode_second_pass_code('', '#!/bin/sh
#
if [ $1 ]; then
# various /etc/rc.d/* stop for samba/transmission/anything non-system running (for peace of mind)
cd /media/Harddrive/Backups
tar -cvpzf POGO$1.tgz --exclude=/media --exclude=/proc --exclude=/lost+found --exclude=/sys --exclude=/dev --exclude=/mnt /
# /etc/rc.d/* start all the same programs
else
echo Usage: pogobackup {MMDDYYYY}
fi')

I just call it (pogobackup 08152011) and normally gives me a ~530mb tgz or smaller if you run pacman -Scc beforehand and once it's done I update. I occasionally visit the folder and delete backups over a month old. I have once had to reinstall so I connected the drive to a working linux box and extracted the files to the drive and made sure to remake the excluded folders (media, mnt, proc, ...). I never had to do anything special afterwards making me believe the plug boots from /dev/sda1 specifically and not judging on UUIDs (proven if you ever had two drives connected at boot up where some people have problems when it finds the wrong drive first). This is the same method I have been using on my other linux box and has never failed me. It may not be the prettiest method but it works for me ;)
If you're fearful of hardware problems, just get a surge-protector or UPS.
Hope that clears stuff up :)
Pogoplug Pro w/ Wireless User -> decomm.
Cubox-i4pro User
4TB eSATA HDD (8g/3700+ Sw/Storage)
Kodi / Transmission / Minidlna / Samba / Batch-audio-conversions / Lighttpd
------------------------------
Rollback Machine - Thanks to impatt
slycat
 
Posts: 169
Joined: Wed Feb 09, 2011 3:07 am
Location: Miami, FL

Re: What is best disaster recovery backup method?

Postby kmihelich » Tue Aug 16, 2011 12:45 am

Power outages don't destroy anything, usually. The most you'll likely need to do is fsck the root partition on another computer if you're using ext2. If you're using ext3/4 as a rootfs (depends on plug type) then it will boot right back up.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: What is best disaster recovery backup method?

Postby chadr » Tue Aug 16, 2011 2:40 am

intermittent power outages caused all sorts of havok on my old late 90s pc based server, but with a ups it would run forever before a hard drive or power supply died. It was one of those inexpensive $50 apc units. Got two of them on craigslist for $20.
chadr
 
Posts: 24
Joined: Mon Aug 01, 2011 10:08 pm

Re: What is best disaster recovery backup method?

Postby bt101 » Tue Aug 16, 2011 11:00 pm

$this->bbcode_second_pass_quote('slycat', 'I') never had to do anything special afterwards making me believe the plug boots from /dev/sda1 specifically and not judging on UUIDs


Thanks, that worked perfect. A simple "file" restore back to the USB drive and it booted fine. I restored to a completely different USB with different size/geometry.

A UPS would work, but it would bug me philosophically.
The dockstar is like a small lean motorcycle, and attaching a UPS to it would be like towing an SUV behind the motorcycle just in case of break-down.

Anyway, I want to put the device out in garage and I think a UPS would give me a headache when the mercury hits -40.

BTW - If anybody know how to mark posts as "solved" let me know. Thanks.
bt101
 
Posts: 10
Joined: Thu Aug 11, 2011 2:52 am

Re: What is best disaster recovery backup method?

Postby WarheadsSE » Wed Aug 17, 2011 12:54 am

edit first post, change Subject. bang.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: What is best disaster recovery backup method?

Postby bt101 » Thu Aug 18, 2011 12:26 am

$this->bbcode_second_pass_quote('WarheadsSE', 'e')dit first post, change Subject. bang.


Too funny.

Now, where did I put my glasses? Oh yea, there on my head.
bt101
 
Posts: 10
Joined: Thu Aug 11, 2011 2:52 am


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 5 guests