Adam Fields (fieldsnyc) wrote,
Adam Fields
fieldsnyc

Backup delicious and lj

Here are crontab entries to back up your delicious and lj posts from a unix box on a daily basis:

30 6 * * * /usr/bin/wget -O /backup/web_services/delicious/delicious_`date +\%F`.xml http://del.icio.us/api/posts/recent?count=100000
30 6 * * * /usr/bin/wget -O /backup/web_services/lj/lj_`date +\%F`.xml http://www.livejournal.com/users/<USERNAME>/data/atom

This requires that your put your login information in .netrc (reminder - chmod 600). See man netrc for more info on that. Obviously, the directories you're backing up into must also exist.

This is particularly timely given the recent outages that del.icio.us has had.
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments