Backup Pinboard notes
notes=$(curl --silent "https://api.pinboard.in/v1/notes/list?format=json&auth_token=${PINBOARD_TOKEN}" | jq --raw-output '.notes[].id') for note in ${notes}; do curl --silent "https://api.pinboard.in/v1/notes/${note}?format=json&auth_token=${PINBOARD_TOKEN}" | xz > "pinboard-note-${note}.json.xz" done
last updated september 2019