After the recent fuss over Yahoo potentially shutting down delcious, I thought it might be wise to automatically back up my delicious bookmarks on a regular basis. Here’s what I did:
1. Created a shell script to download delicious bookmark data to my Dropbox folder
cat $HOME/Development/Scripts/backup-delicious.sh
curl -s https://BillHiggins:MyPassword@api.del.icio.us/v1/posts/all > $HOME/Dropbox/delicious-bookmarks.xml
This sucks down an XML file of current bookmark data and drops it in my Dropbox folder that is automagically backed up to the Dropbox cloud.
2. Created a cron job to automatically run said script each week
crontab -e
# backup bookmarks every Friday at 2pm 0 14 * * 5 $HOME/Development/Scripts/backup-delicious.sh
[…] This post was mentioned on Twitter by Bill Higgins, Bill Grant. Bill Grant said: Time to find a new home for those bookmarks… RT @BillHiggins: Blog entry: "automatically back up delicious bookmarks" http://bit.ly/g10uZu […]
May want to have a versioning thing, or something that will deal with non-2XX response codes… as you may start getting a 404 error or something and not even have your backup with that cron running.
Thanks Michael – good point. An escape valve is that Dropbox saves versions of files, but still, you are right.