Randomland - The Forum

Technology => Hardware and Software => Topic started by: zourtney on Feb 17, 2013, 02:28 PM

Title: Distributed Backup Systems
Post by: zourtney on Feb 17, 2013, 02:28 PM
Occasionally, I get the feeling I should implement some sort of backup system between all my computers. Other than that 5 year old external hard drive sitting on my desk.

Of course, there are those paid, online ("cloud") storage solutions. And they're plentiful. But I was wondering if anyone was interested in setting up a sort of private peer-to-peer type backup system?

Ideal situation:

A quick check shows (http://superuser.com/questions/296505/is-there-any-p2p-private-file-storage) that there are several programs out there that do this.

Anyone interested? I could always pay some company $50+/yr but...  :-\
Title: Re: Distributed Backup Systems
Post by: Nick on Feb 17, 2013, 03:05 PM
How odd, I was just looking at a $15 NAS box that was linked on reddit, the pogoplug. (http://www.adorama.com/COCPOGOP21.html?emailprice=t&utm_term=Other&utm_medium=Affiliate&utm_campaign=Other&utm_source=rflaid62905) (You can put debian and arch linux on it)

I looked at some backup stuff and cloud storage not too long ago. Anything that offered enough storage (500gb +) got expensive. I was thinking that could be a ok way for us to have communal picture storage without eating all of my bandwidth (though, if you mailed me a drive/stopped by then a USB port will work) But yeah.

For at-home backing up a little NAS box might work ok.
Title: Re: Distributed Backup Systems
Post by: zourtney on Feb 17, 2013, 06:01 PM
I've been wanting a good at-home NAS box for a while now. I'll have to look into that one (Drobo and Synology (http://www.newegg.com/Product/Product.aspx?Item=N82E16822108095) are two others I've heard of, but aren't cheap). I think the combination of a NAS with off-site backup hardware would be awesome. We could both get one and let them talk to each other!
Title: Re: Distributed Backup Systems
Post by: zourtney on Feb 17, 2013, 10:12 PM
I looked at someone's post about CrashPlan and Linux on the pogoplug (http://www.opticality.com/blog/2011/07/16/installing-crashplan-on-a-pogoplug-pro/). It's like 7 pages full of terminal commands  :o My favorite was the "cross fingers" part. :P

As such, I kinda like those Synology offerings. I want to want a DIY solution. I could build myself a little mini pc, toss some drives and FreeNAS on it...a few dozen late nights buried in a Linux command line prompt and voila! But it's ultimately not a lot cheaper. And it's certainly not easier. Maybe I'm lazy. Or inept. Or have other projects. Something like a Synology NAS [1 (http://www.amazon.com/Synology-DiskStation-Diskless-Network-Attached/dp/B005YW7OLM/ref=sr_1_1?s=electronics&ie=UTF8&qid=1361166932&sr=1-1&keywords=synology) or 2 (http://www.amazon.com/Synology-DiskStation-Diskless-Attached-DS213/dp/B008U68UHG/ref=sr_1_6?s=electronics&ie=UTF8&qid=1361165894&sr=1-6&keywords=synology)] with pair of WD drives [1 (http://www.amazon.com/Western-Digital-Caviar-Green-Desktop/dp/B004RORMF6/ref=sr_1_1?ie=UTF8&qid=1361167142&sr=8-1&keywords=wd+green) or 2 (http://www.amazon.com/WD-Red-NAS-Hard-Drive/dp/B008JJLW4M/ref=sr_1_2?s=electronics&ie=UTF8&qid=1361166932&sr=1-2&keywords=synology)], and CrashPlan (free (http://www.crashplan.com/consumer/crashplan.html)) installed. It could work.

I don't need any of that. We could just install CrashPlan (or another) and try this out. Until my drive's a'brimming. I'm going to go install it on two computers and see how it goes.

Edit: ok, via LAN at least, that was incredibly easy. So easy a caveman could do it. Anyone want me to back their stuff up? I'll donate some gigs (~10-20 is about all I'd want to spare on the desktop, for now)

Edit 2: of course, everything is encrypted, which is great. Except when it isn't. This is essentially useless for sharing pictures, etc... a simple rysnc wrapper (http://duplicity.nongnu.org/) might be enough for that...)
Title: Re: Distributed Backup Systems
Post by: zourtney on Feb 26, 2013, 07:05 PM
How much disk space do we have available on the Randomland server? I was thinking of experimenting with rdiff-backup (http://rdiff-backup.nongnu.org/examples.html). In theory, it's basically the rysnc gimp backups I set up for work once upon a time...only built as a (hopefully usable) tool. The aforementioned duplicity (http://duplicity.nongnu.org/) will do the same, but in an encrypted tar file.

...Unless you all think it's silly (or invasive) to back up our pictures, media, etc to each other machines (encrypted or not). I do want a semi-regular, off-site backup of at least Randomland's databases.

Thoughts?
Title: Re: Distributed Backup Systems
Post by: Nick on Feb 26, 2013, 10:37 PM
We have loads of disk space.
Filesystem      Size     Used   Avail    Use%
/dev/sda6       456G   67G    366G    16% /

There are lots of pic in /var/www already ( 17G     ./var )

Upload away! Just remember I have a bandwidth cap. Using Sneaker net (Mailing a flash drive) might be nice, or just do it in ~10gb bunches per month.  I am happy to give toward a communal thumbdrive :) Either a 64gb or a few 32gb ones, or a fist full of 16s would work.
(So cheap these days) (http://www.newegg.com/Product/Product.aspx?Item=20-178-479)

(Or .... If work does not mined, I can set up a linux box (I got one of those pogo plugs to play with) and you can transfer all you want (in the evening) to that via SSH on a forwarded port)
Title: Re: Distributed Backup Systems
Post by: zourtney on Mar 18, 2013, 08:40 AM
So, I got myself a little NAS box (http://amzn.com/B008U68UHG). I stuck two 3tb hard drives (http://amzn.com/B008JJLW4M) in it, which are currently running in RAID 1. I've already loaded it up with all my pictures, music, and video projects -- all the stuff I care about.

I've still got plenty to figure out:
As for the box itself, I like it. It's not (even close to) cheap, but I couldn't build something with a similar form factor for the price. It's nice and small; and it's quiet. More importantly to me at the moment is that it was really, really easy to set up. I had the thing full of drives, shared folders set up, and files being copied to it within a few hours of casual attention. It has impressive browser-based admin GUIs; a limited, but good package manager for the boilerplate stuff; and iOS, Android, and WindowsPhone(!) apps. I got music streaming to my phone and the PS3 in about 4 mouse clicks  :)

It runs some variant of Linux, so I can do pretty much anything I want with it. (The only kicker is that it's an ARM processor, so, I might have to learn to love to compile from source). One fun project could be using NodeJS or Python to make RESTful image API.

Anyway: cool toytool.
Title: Re: Distributed Backup Systems
Post by: Nick on Mar 18, 2013, 08:55 AM
There are loads of packages for ARM, depending on what distro it's based off of. But compiling from source (usually) is not too hard.

How would the RL servers access your box for backups? At the very least it would be nice to stick a periodic ZIP of the database on there. SSH file transfer(SFTP)? Some other protocol? Virtual networking and a samba-type share?


The project sounds fun :) But what is a Yallpine?
Title: Re: Distributed Backup Systems
Post by: zourtney on Mar 18, 2013, 10:00 AM
Well, I still need to poke some holes in my router firewall. Then I should be able to use some dynamic IP updater service to map it to some Randomland subdomain (or another domain entirely?). I'm not sure what protocol to use to transfer backups...guess I'd have to play with it. I'm sure it's doable (and probably relatively easy).Are you still backing up the database on a cron job?
Title: Re: Distributed Backup Systems
Post by: Nick on Mar 18, 2013, 01:00 PM
QuoteAre you still backing up the database on a cron job?
Probably? If not it should be.
Title: Re: Distributed Backup Systems
Post by: zourtney on Apr 21, 2013, 08:28 AM
Yos to all.

I set up my fancybox to be accessible from the outside world. I used the box's built-in utilities to tie it to a dynamic DNS hostname. Now I can access the admin GUI (or SSH in) from anywhere. Even better, I can view every picture I've ever taken through its mostly-tolerable web interface.

So now, I've got a couple muddy goals.

And maybe someday:

So yep. Once that's all set up, you all can upload pictures to Randomland, and have at least one other offsite copy. Yay  :)

* I might even break it up into two or more subdomains (one for each distinct purpose). I'm always a fan of naturey themes, so suggestions are welcome...or "yallpine".