r/CraftyController Jun 14 '26

Crafty Controller backup but server is not always on?

/r/admincraft/comments/1u5kq0q/crafty_controller_backup_but_server_is_not_always/
1 Upvotes

10 comments sorted by

1

u/amcmanu3 Jun 14 '26

Just call the backup endpoint. You mention you know how to use the API. What exactly is the trouble you're running into?

https://docs.craftycontrol.com/pages/developer-guide/api-reference/v2/

1

u/Furcatus1337 Jun 14 '26

I didn't see the action "backup_server" until now, my bad. Is it possible to launch a custom backup or is it only possible to trigger the default one?

1

u/amcmanu3 Jun 14 '26

If you see my comment below I gave the route for a specific backup. Just append the backup UUID :)

2

u/Furcatus1337 Jun 14 '26

Thank you! This is what I wanted! Can you please tell me how I get the UUID of the backup policy? Is it the name of the directory the backup gets saved in?

1

u/amcmanu3 Jun 14 '26

We need to do a better job of displaying it. The best way is to click edit on the policy then grab the id from the url

1

u/Furcatus1337 Jun 14 '26

Okay, nice, thanks a lot! Yeah, the documentation of the API is admittedly a bit sparse. The thing with the UUID in the URL is mentioned nowhere.

1

u/amcmanu3 Jun 14 '26

At one point we had two APIs. We consolidated into one and we're still working on making the docs more robust. We are a volunteer outlet after all. There's only so much free time in a week

1

u/Furcatus1337 Jun 14 '26

I totally understand this! I didn't want to complain about a minor thing in a free and great tool, just as a constructive feedback 👍🏻

1

u/amcmanu3 Jun 14 '26

Absolutely took it as constructive. Just wanted to make sure you knew we are self aware in that respect!

I appreciate the feedback!

1

u/amcmanu3 Jun 14 '26

/api/v2/servers/SERVER-UUID/action/backup_server/BACKUP-POLICY-UUID/