- December 2024 (3)
- September 2024 (1)
- August 2024 (2)
- July 2024 (2)
- May 2024 (2)
- April 2024 (2)
- February 2024 (2)
- April 2023 (1)
- March 2023 (2)
- September 2022 (1)
- February 2022 (1)
- November 2021 (1)
- March 2021 (1)
- February 2021 (2)
- August 2019 (1)
- November 2018 (1)
- May 2017 (1)
- December 2016 (1)
- April 2016 (1)
- August 2015 (1)
- December 2014 (1)
- August 2014 (1)
- March 2014 (1)
- December 2013 (1)
- October 2013 (3)
- September 2013 (4)
- August 2013 (2)
- July 2013 (1)
- June 2013 (1)
- February 2013 (1)
- October 2012 (1)
- June 2012 (1)
- May 2012 (1)
- April 2012 (1)
- February 2012 (1)
- October 2011 (1)
- June 2011 (1)
- May 2011 (1)
- April 2011 (1)
- March 2011 (1)
- February 2011 (1)
- January 2011 (1)
- December 2010 (3)
- November 2010 (1)
- October 2010 (1)
- September 2010 (1)
- August 2010 (1)
- July 2010 (1)
- May 2010 (3)
- April 2010 (1)
- March 2010 (2)
- February 2010 (3)
- January 2010 (4)
- December 2009 (2)
- November 2009 (5)
- October 2009 (2)
- September 2009 (2)
- August 2009 (3)
- July 2009 (1)
- May 2009 (1)
- April 2009 (1)
- March 2009 (5)
- February 2009 (5)
- January 2009 (5)
- December 2008 (3)
- November 2008 (7)
- October 2008 (4)
- September 2008 (2)
- August 2008 (1)
- July 2008 (1)
- June 2008 (1)
- May 2008 (1)
- April 2008 (1)
- January 2008 (5)
- December 2007 (3)
- March 2007 (3)
- February 2007 (1)
- January 2007 (2)
- December 2006 (4)
- November 2006 (18)
- 3D (5)
- AI (17)
- Admin (3)
- Blogging (5)
- Business of Software (9)
- Copyright (1)
- Dirigible (3)
- Django (1)
- Eee (3)
- Finance (6)
- Fine-tuning LLMS (10)
- Funny (11)
- GPU Computing (2)
- Gadgets (8)
- JavaScript (1)
- Linux (13)
- Memes (2)
- Meta (7)
- Music (4)
- NSLU2 offsite backup project (13)
- OLPC XO (2)
- Oddities (4)
- Personal (3)
- Politics (3)
- Programming (64)
- Python (39)
- PythonAnywhere (12)
- Quick links (2)
- Rants (4)
- Raspberry Pi (1)
- Resolver One (22)
- Resolver Systems (18)
- Robotics (8)
- Space (2)
- Talks (3)
- Uncategorized (5)
- VoIP (2)
- Website design (4)
Project: Automated offsite backups for an NSLU2 -- part 3
Previously in this series: Part 1, Part 2.
I am trying to get my NSLU2 to back itself up automatically to Amazon S3. At the end of the last post, I noted that the device would need new software to make it do so; and while it's Linux-based, it's really not designed to be extended like this. Time to go online.
A quick search for "hacking the NSLU2" leads us to an old article at Tom's Networking. By following the author's instructions, I was able to get a telnet login into the device as root -- not bad for a few minute's work. Poking around, however, makes it clear that it's a rather cut-down version of the OS:
# cd /usr/bin
# ls
Set_Led [ basename edquota free
id killall mke2fs mkfs.ext3 passwd
quotacheck quotaoff quotaon smbmnt smbmount
test
#
...and so on.
Now, the author of the article goes on to explain how to cross-compile stuff so that you can install new software, which all looks useful. So I'll file that away, but before jumping in and trying to write my own C program to talk to S3... the author's own NSLU2 page is linked from the article, and from there he links in turn to a site which is clearly the home of the NSLU2-hacking community, who have probably done at least some of the work for me. Perfect.
A quick poke around shows that no-one there has their slug (as they affectionately call the devices) syncing with S3, which is pleasing (in that it's nice to be first) but annoying (in that it's nice to have solutions handed to you on a plate). What it also shows is that anyone doing anything interesting is using a non-standard operating system -- that is, they have replaced the Linksys version of Linux with another, more capable one. As you would expect from an open-source effort, there are multiple competing versions of the OS -- here's a comparison matrix.
OK, so, to recap -- I now know that I almost certainly need to install a new version of the firmware into the NSLU2 in order to get it run the non-Linksys software required to sync with Amazon S3.
The next step is to find out what kind of software I will need to run. A quick offering to the Great God Google gets 1,280,000 hits -- the top one is for something called s3sync, which sounds interesting, but the remainder on the first page are pretty much irrelevant. A few more refined searches lead me to this page: A List of Amazon S3 Backup Tools by Jeremy Zawodny. There are a lot of tools listed here, so I think the next stage is to find out what their dependencies are, and work out which -- if any -- is compatible with at least one of the hacked NSLU2 firmware distros.
Next: Evaluating the software.