Automatic backup of Confluence spaces
Issue #21
resolved
Based on the previous issue (Issue #17), I understand that Confluence backup script will create backup, but that backup can not be used to restore Confluence, if Jira and Confluence are on the same subscription.
Is it possible to automate backup of Confluence spaces one by one? Something similar like backup scripts for full backup of Jira and Confluence.
Comments (4)
-
-
Thank you for your work with backup scripts.
I really appreciate it.We have a similar situation and, if possible, would also like to automate the process of restoring spaces.
-
- changed status to on hold
In the below thread in the Atlassian Community there is a working python script that is using some deprecated SOAP calls to export all spaces. Can you give it a try?
-
- changed status to resolved
- Log in to comment
Hi @Elmin Custo ,
There are 2 ways but none of them is too comfortable (they are mainly workarounds):
Supported: You can import the backup into a temporary Confluence Server instance (you can download it and test it for free for one month. Once expired you can start a new trial) and then use the free add-on Cloud Migration Assistant for Confluence to restore the content into Confluence Cloud. In this case you have to modify the script so that it takes the backup for Confluence Server
DEPRECATED: You can use SOAP requests to automatically export space by space. This has been deprecated long time ago and it is not even officially documented for Confluence Cloud but it is known to be still working since there is no REST API endpoint provided to replace this functionality. If you go this way please keep in mind that you need to use USERNAME and PASSWORD to authenticate and that is quite difficult to get support on this. For further details you can check:
https://developer.atlassian.com/server/confluence/confluence-xml-rpc-and-soap-apis/
https://community.atlassian.com/t5/Confluence-questions/SOAP-and-REST-APIs/qaq-p/31386
I hope this helps :)