Skip to content

Instantly share code, notes, and snippets.

@perja12
Created January 22, 2022 09:31
Show Gist options
  • Save perja12/c09becb137a8b302c89ed1aba023a98d to your computer and use it in GitHub Desktop.
Save perja12/c09becb137a8b302c89ed1aba023a98d to your computer and use it in GitHub Desktop.
Download Partsbox data for backup (partsbox.com)
# Backup the partsbox database.
# Setup:
# 1. Generate the API key in settings of partsbox.com.
# 2. Store the API by using secret-tool (https://gitlab.gnome.org/GNOME/libsecret/issues):
# $ secret-tool store --label=partsbox provider partsbox
# (give the API key as input to password prompt)
curl \
-H 'Content-Type: application/json' \
-H 'Authorization: APIKey '$(secret-tool lookup provider partsbox)'' \
-o partsbox-export-$(date +%Y-%m-%d).json \
https://api.partsbox.com/api/1/db/download-all-data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment