Forums

Articles
Create
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

๐Ÿ›ก๏ธ Automate Jira & Confluence Cloud Backups with AWS (Open-Source Python Scripts)

Aaron Morris
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 28, 2025

Hi everyone! ๐Ÿ‘‹

I just wanted to share some Python scripts I wrote to automate Jira Cloud and Confluence Cloud backups using AWS.

๐Ÿ”— https://github.com/agile-innovations-tech/atlassian-cloud-backups

There are four scripts:

  • Jira Backup Trigger:  Initiates the creation of a new Jira Cloud backup file using Jira's API.

  • Jira Backup Download:  Downloads the latest backup file from Jira Cloud and stores it in AWS S3.
  • Confluence Backup Trigger:  Initiates the creation of a new Confluence Cloud backup file using Confluence's API.

  • Confluence Backup Download:  Downloads the latest backup file from Confluence and stores it in AWS S3.

The scripts are designed for AWS Lambda, but you could adapt the scripts to run on other platforms.

These scripts are designed using the APIs described here:

By using AWS, you can use:

  • Lambda to execute the scripts
  • EventBridge to schedule the scripts
  • S3 to store the backups
  • and CloudWatch to monitor for backup failures.

The README in the repository contains some YouTube links for a full tutorial.

๐Ÿ‘‰ If you try it out, Iโ€™d love to hear how it works for you!

๐Ÿ’ฌ Feedback, ideas, or even code contributions are very welcome.

Thanks for checking it out!

3 comments

Comment

Log in or Sign up to comment
Natasha Richardson July 28, 2025

Hi Aaron,

Just a quick question. Does this solution work similar to backup tools in the marketplace for example revyz? 

Like โ€ข # people like this
Aaron Morris
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 28, 2025

@Natasha Richardson -- Great question! These scripts only automate Jira and/or Confluence's native backup capabilities.

They do not provide any of the advanced features you might get from the Marketplace.

Like โ€ข Mario GELES likes this
Zachary Howard
Contributor
July 30, 2025

Always great to see Community members offer solutions like this! I am curious though, as someone who hasn't really considered backing up our Jira and Confluence Cloud (Premium) instances is this something that I should look into? I had assumed that since the apps were cloud-based Atlassian would have their own backups in place in case of any critical system outages.

I've been trying to look into this and found a few sources talking about the lack of a native auto-backup feature, and ways around this:

So I have a few questions:

  1. What are the benefits of performing our own Cloud backups vs relying on Atlassian's backups? 
  2. @Aaron Morris you mentioned that "These scripts only automate Jira and/or Confluence's native backup capabilities" compared to the available 3rd party apps. I'm not sure what this means though. What do the native backup capabilities not capture that 3rd party options do? 
  3. How does your Python solution differ from the functionality in this KB article that claims to not require any scripts?

Sorry if my questions are complicated. Genuinely excited to see this free solution that you've created! Thank you!

 

Like โ€ข Mario GELES likes this
Aaron Morris
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 30, 2025

Hi @Zachary Howard -- This is kind of a heavy subject, but I'll give some brief answers:

What are the benefits of performing our own Cloud backups vs relying on Atlassian's backups? 

Having your own backups provides a little more insurance. Specifically, Atlassian's disaster recovery capabilities only protect you against system-level incidents that (likely) impact many customers. They can't help you if something happens to your data locally within your site.  For example, a buggy automation script deletes too many records, a disgruntled employee sabotages your data, etc.

Having site-level backups might save you after a localized incident like these.

You mentioned that "These scripts only automate Jira and/or Confluence's native backup capabilities" compared to the available 3rd party apps. I'm not sure what this means though. What do the native backup capabilities not capture that 3rd party options do?

Natasha was asking how these backups compare against using something like Revyz or Rewind. The answer is that Jira's native backups only provide a monolithic backup of your entire Jira site that can be restored to a temporary site or to your original site.

Third-party apps make it easier to restore individual projects, individual records, specific configurations, and so forth. They also support a longer history of backups. You'll have to research each individual app for a comprehensive comparison of capabilities.

And to be clear, those apps are great.  The only downsides are that they are more expensive and tie you into their technology if you want to maintain your history of backups.

You'll have to do your own cost-benefit assessment to decide if those solutions are right for you.

How does your Python solution differ from the functionality in this KB article that claims to not require any scripts?

The solution in the KB is incomplete. Specifically, the following warning is listed near the top of the KB.

Importantly, in this approach, we skip downloading the created site backups to any local machine simply because it's better than nothing. It is recommended to download site-backups if you can. To do so, use the bash scripts listed below:

So, for my own purposes, I've adapted the scripts linked by the KB to run in AWS and make use of AWS's secure storage, monitoring, etc.

And I've shared my scripts here. ๐Ÿ™‚

I hope this helped clarify things a bit. Again, this is a big subject and would require an eBook to answer in full. ๐Ÿ˜†

Like โ€ข Mario GELES likes this
TAGS
AUG Leaders

Atlassian Community Events