We rely heavily on our ownCloud server here on the farm. Be it keeping up with our finances or maintaining health records on ourselves and our animals, we couldn’t live without it!
Friday brought severe weather in Florida, and a power outage that occurred during that storm was very hard on some of our electronics. We lost 3 cameras out in the goat pen, plus a computer monitor, and most importantly, our ownCloud server.
Yes, we have house-wide surge suppression, and yes, everything that got blown up was plugged into a further surge suppressor and UPS! Still, lightning goes where it wants, and on Friday, it chose those items.
Enter today’s tale of recovery. You see, while setting up an ownCloud server from scratch isn’t all that hard, it is very time consuming. Getting the Apache web server running just the way you want it, with SSL properly configured can take hours. But, not when you can work with a disk image!
Once our ownCloud server was up and happy many months ago, we used a Linux utility already installed in most Linux platforms, to do a mirror image disk image of our ownCloud boot disk. That disk image sat on an external USB hard drive, just waiting for the day it was needed.
First thing to do was slap a new computer together from our vast stores of often ancient computer hardware. Next, take the drive you want to use for the new server and plug it into a USB drive adapter. Those are handy devices to have around, and are very inexpensive.
Plug your hard drive via the USB cable into a working computer, and then launch the Disks utility
Click on your Menu button, and select Control Center.
Then select Disks which will launch today’s useful software tool.
Here’s where you need to use caution. Make sure that the drive you have selected is the one you wish to write to, and not your current computer’s hard drive!
Select the drive you wish to write to, select the disk image you wish to put on that disk, and let ‘er rip!
Because the new drive was much larger than the original, you’ll notice the warming in the above screen grab. After the disk was written, I then used GParted to resize the Linux partition to use the entire available disk space.
Of course our ownCloud data directory is on an external drive to our ownCloud server, so once the new drive was written and installed into the new computer, all we had to do was boot it up, plug our data drive in and it’s like it never blew up!
So save yourself some grief, make that disk image of your ownCloud or NAS server now, so you have it when you need it!