Skip to content

How to execute a Plan via CLI? #707

Answered by garethgeorge
Snake883 asked this question in Q&A
Discussion options

You must be logged in to vote

Backrest doesn't provide any CLI but there is a semi-stable API

https://garethgeorge.github.io/backrest/docs/api#backup-api

So specifically to execute a plan, first disable authentication (ensure your service is only listening on localhost before doing this) then:

curl -X POST 'localhost:9898/v1.Backrest/Backup' --data '{"value": "YOUR_PLAN_ID"}' -H 'Content-Type: application/json'

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@qymab
Comment options

Answer selected by garethgeorge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants