Created
January 22, 2022 09:31
-
-
Save perja12/c09becb137a8b302c89ed1aba023a98d to your computer and use it in GitHub Desktop.
Download Partsbox data for backup (partsbox.com)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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