Thursday February 12, 2009 at 12:38

Backing up Delicious Bookmarks

I often go through these moments of fear, that a site I use often for services will start charging, or disappear, etc. (or even worse, start showing ads).  Fortunately, most sites I use have API’s so it allows me to capture and store data I’ve provided them.  One such service is Delicious.  I’ve used this service on and off for years, more so of late.  Delicious has a rather robust API, and allows users to easily access data.  So, I figured, why not just go ahead and keep a backup of my bookmarks.  With crontab and our trusty friend curl, this is really easy to do:

curl -k --user username:password -o delicious.xml -O 'https://api.del.icio.us/v1/posts/all'

That’s all it takes.  Of course, I then slurp this into a database, and look for new entries, but that’s just me.