Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×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 Confluence site-backup
Although you can start with either Jira or Confluence, we'll look into how to configure a rule for Confluence here for convenience.
(2-1) Cron expression
Each backup should be performed after a 48-hour interval at least. We here are going to schedule the execution twice a week on Monday and Thursday. Also, make sure to avoid maintenance windows for your site. For example, suppose your company sits in EST, specify 9 am in UTC:
0 0 9 ? * 1,4
(2-2) Webhook body
{"cbAttachments":"true" }
(3) Create a rule for Jira site backup
I'll put the diff in settings as it's almost the same with Confluence.
(3-1) Cron expression
Same here, on Monday and Thursday at 9 am in UTC:
0 0 9 ? * 1,4
(3-2) Webhook body
{"cbAttachments":"true", "exportToCloud":"true"}
(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
71 comments