Skip to content

Instantly share code, notes, and snippets.

@juev
Created July 28, 2012 14:41
Show Gist options
  • Save juev/3193632 to your computer and use it in GitHub Desktop.
Save juev/3193632 to your computer and use it in GitHub Desktop.
Pinboard backup
#!/bin/sh
DIR=/Users/sbrown/backups
FILE=`date +"%Y%m%d"`-pinboard-backup.json
URL=https://USERNAME:PASSWORD@api.pinboard.in/v1/posts/all?format=json
cd $DIR
wget $URL -O $FILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment