Here I'll introduce a way to automate site backups of Jira Cloud and Confluence Cloud with Jira Automation.
(0) Why site-backup is important
Atlassian doesn't officially provide data rollback based on customer requests. So it's essential to take site backup regularly. For example, the backup will help you restore data when any of the site data is lost by a user's interaction. Refer to the following part in Data storage FAQ for more details:
Atlassian cloud sites don't support the use of backup data to roll back changes.
First, let me clarify what is covered by this article. The approach introduced here is only good as a temporary workaround, as there are some constraints, such as:
(1) Preparation
First things first, you always need to have credentials when you do something important:
(1-2) Example - How to encode your API token
$ echo -n "site-admin@example.com:123e4567-e89b-12d3-a456-426614174000" | base64
c2l0ZS1hZG1pbkBleGFtcGxlLmNvbToxMjNlNDU2Ny1lODliLTEyZDMtYTQ1Ni00MjY2MTQxNzQw
MDA=
Besides, for those using IP Allowlisting, include the egress IP ranges introduced at IP addresses and domains for Atlassian cloud products #Outgoing Connections.
(2) Create a rule for the Confluence site backup
Although you can start with either Jira or Confluence, we'll first look into how to configure a rule for Confluence:
{"cbAttachments":"true", "exportToCloud":"true"}
(3) Create a rule for Jira site backup
NOTE: Most of the settings we did above for Confluence will be the same for Jira.
If you already have a rule to backup your Confluence site, you can simply duplicate that rule and only make the necessary changes.
Below you can see the differences:
(4) Constraints
Other than noted above, there are several points you should be aware of:
K_ Yamamoto
Technical Support Engineer
Atlassian, K.K.
Yokohama, Japan
10 accepted answers
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
74 comments