Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download backup via API #11418

Merged
merged 2 commits into from
Jun 29, 2022
Merged

Download backup via API #11418

merged 2 commits into from
Jun 29, 2022

Conversation

snipe
Copy link
Owner

@snipe snipe commented Jun 29, 2022

So far my tests with this are working as expected. My hope is that this will make it easier to download backups programmatically for those who forget to login and download them.

curl --output 2022-06-24-15-47-58.zip --insecure --request GET 'https://snipe-it.local:8890/api/v1/settings/backups/download/snipe-it-2022-06-24-15-47-58.zip' \
--header 'Authorization: Bearer MY-BEARER-TOKEN' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json'

(The --insecure flag is just because I use a self-signed certificate for local development. )

Screen Shot 2022-06-29 at 12 06 26 AM

Signed-off-by: snipe <snipe@snipe.net>
Signed-off-by: snipe <snipe@snipe.net>
@snipe snipe merged commit 7b3f891 into develop Jun 29, 2022
@snipe snipe deleted the features/api_backup_download branch June 29, 2022 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant