snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
10.96k stars 3.16k forks source link

Expand REST API for backups #8463

Open jpierre-mm opened 4 years ago

jpierre-mm commented 4 years ago

Expected Behavior (or desired behavior if a feature request)

Would like to trigger and retrieve backups via the REST API to enable automation using the hosted Snipe-IT service.


Actual Behavior

Doesn't appear to be any API for this at the moment

Please confirm you have done the following before posting your bug report:


Provide answers to these questions:

Please do not post an issue without answering the related questions above. If you have opened a different issue and already answered these questions, answer them again, once for every ticket. It will be next to impossible for us to help you.

https://snipe-it.readme.io/docs/getting-help

stale[bot] commented 3 years ago

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail. This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

jpierre-mm commented 3 years ago

This is still relevant. Thanks

stale[bot] commented 3 years ago

Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!

lesinigo commented 1 year ago

After more than two years I see we have an API endpoint to list and download backups, but there is none to trigger the creation of a new backup. It would be really useful to be able to execute backups without having to depend on the internal scheduling.

The internal scheduler does not - afaik - allow to change from the default weekly scheduling, at least not without changing the application code which I'd prefer to avoid since I'm using the official docker images and that change would be lost at every container restart.

snipe commented 1 year ago

The internal scheduler does not - afaik - allow to change from the default weekly scheduling

You can run that directly via cron if you want it to fire at a different interval. https://snipe-it.readme.io/docs/configuring-alerts-backups

Snipe-IT Documentation
Configuring Alerts & Backups
Starting from Snipe-IT v3.0, all automated tasks are handled via the scheduler. To set a cron job to run every minute to ping the scheduler:Shell * /path/to/php /path/to/artisan schedule:run >> /dev/null 2>&1 The scheduler already knows how often it should trigger the individual tasks, ...