Since del.icio.us decided to have a bit of downtime this past week I have decided to update my del.icio.us backup script a bit more. Before it would just grab all the posts and overwrite the old file. Issue is when they were bringing the system back up my script happily wrote an http error to that file, thus making my backup useless.
So here is my new script, it will make a file called ‘DeliciousYYYY-MM-DD.xml’ with the year filled in.
#!/bin/bash # Grab the del.icio.us bookmarks into an # xml file... ick I know but it works! curl --user user:pass -o /path/to/backup/Delicious`date +%Y-%m-%d`.xml \ -O 'http://del.icio.us/api/posts/all'
To use, fill in the user and pass with your login name and password for del.icio.us and the /path/to/backup. Then run
bash delicious.sh
or
chmod +x delicious.sh
./delicious.sh
If it works you can add it to your crontab and have it run everyday, and feel comfortable knowing your posts are safe.
Eric Davis