semaphoreui / semaphore-docs

Ansible Semaphore documentation
https://docs.ansible-semaphore.com
23 stars 54 forks source link

How to Backup and Restore SemaphoreUI #46

Open test123-all opened 4 months ago

test123-all commented 4 months ago

Hey, I haven't found a chapter inside the docs on how to best backup and restore SemaphoreUI (on a daily base).

What I have found so far:

  1. projects can be backuped through the UI under the Dashboard Menu >> Settings Tab >> blue button 'Backup'. Restores seem to be done by clicking on the current project drop down menu (at the top left corner) >> Restore Project. But there seems to be a current issue: https://github.com/semaphoreui/semaphore/issues/2227
  2. I also found the corresponding actions in the API docs: https://semaphoreui.com/api-docs/#/project/get_project__project_id__backup and https://semaphoreui.com/api-docs/#/projects/post_projects_restore

Is the API the recommended way to do the backup? Is there a way just by doing a database dump or backing up project files? Since I had to create a SEMAPHORE_ACCESS_KEY_ENCRYPTION token, and I read that the database is encrypted, I highly doubt that.

The main idea behind this is to use Ansible and SemaphoreUI to automate the backups of some web-services and data. That is also the reason why I have taken a look at SemaphoreUI in the first place. So far I am quite happy with what I have seen. Thank your for providing it.

If there should be a correct way of doing it I would be willing to help with the documentation on that part. In that case please just tell me where I can find further information or, If there aren't any, where I should add what I know.

Yours sincerely