Backup System in place
Over the past 2 nights i’ve been working on the backup system for our home network. The hardware is a NSLU2 connected to a 250 gig hard-drive. The software side is a Python script which does 7 day rotating incremental backups to the NSLU2. This way i always have a weeks leeway, in case i over-write something important. I’ve included the script below, if anyone is interested in it.
The NSLU2 has been hacked to do much more then was originally intended. Some pretty neat stuff there, but i’m not sure i’m comfortable hacking something that i just got running as my main backup system! But the NSLU2 is cheap (~$100/CDN), so if you are looking for a simple embedded linux system, this is the way to go.
As you can see, i’m relying heavily on the windows xcopy and rmdir command. There is a version of rsync in python which i was going to use, but i couldn’t find a way to make it do what the /D switch does for xcopy. And the os.rmdir in python requires that the directories be empty, and i just wanted to erase the whole thing, no questions asked.
When i get some more time, i’ll look into finding or making some tools to make this script less windows centric.

Leave a comment