You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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 when any of site data was lost by the user's operation. 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.
Let me clarify what's covered by the approach introduced in this article. It's good as a first step while 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 48 hours 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 of 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 of settings as it's almost 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
Atlassian TeamTechnical Support Engineer
Atlassian, K.K.
Yokohama, Japan
10 accepted answers
53 comments