...
See How to carefully perform the mappings for the backup import/export step? for the most important part of it.
How to script it or schedule it?
We don’t have automatic backups because it is only used in the situation of backups, and we don’t want to encourage customers to add workload and disk usage on their instance.
The backups are made in background jobs. They can be triggered using a REST API request,
To see which call, open the network panel while performing a backup, and monitor all calls to POST /rest/reqs/1/backups. It will provide the correct payload to send.
If you are unable to extract the information using this general instruction, it will be too difficult for you to manage the rest of the process. In this situation, we recommend just relying on global Confluence backups.
After extracting the correct calls, you can write a script on your servers to make it happen automatically (cronjob).
Thank you