Select Page

Atlassian Cloud Backups for Jira and Confluence: A No-Code Approach

Atlassian Cloud Backups are critical for ensuring the safety and availability of your information is crucial, especially when it comes to tools like Jira and Confluence used in project management and team collaboration.

Automating site backups for these platforms is essential for data integrity and business continuity, and thankfully, this can be achieved without needing extensive programming skills.

This blog post aims to summarize the reasons, process, and tools necessary for automating Atlassian Cloud backups, along with their benefits and limitations.

Why Automate Backups for Jira and Confluence

  1. Data Security: Protects against data loss due to human error, system failures, or cyber attacks.
  2. Consistency and Reliability: Ensures regular and consistent backups, reducing the risk of outdated or missing data.
  3. Efficiency: Saves time and resources compared to manual backups, allowing teams to focus on core tasks.

The Process of Atlassian Cloud Backups

  1. Identify Backup Requirements: Determine the frequency, type of data, and storage location for your backups.
  2. Choose the Right Tools: Select backup tools that support Atlassian Cloud, such as Rewind, BackHub, or native cloud storage solutions like AWS or Azure.
  3. Configure Backup Settings: Set up the backup tool according to your requirements, specifying the frequency and scope of the backups.
  4. Test the Backup Process: Run test backups to ensure everything is working as expected and data can be successfully restored.
Automating Site Backups for Jira and Confluence:

Setting up Automation

Step 1: Issue an API token of the site-admins account at https://id.atlassian.com/manage/api-tokens

Format should follow  ‘$EMAIL_ADDRESS:$API_TOKEN’, into a base64 encoded string.

When creating the string be careful to avoid adding a line break at the end of the encoding.

You can also use a Base64 Encoder.

 

 Automating Site Backups for Jira and Confluence:

Step 2: General Set up 

Start by selecting schedklue for site back up for Jira or Confluence. Example steps below for Confluence

  1. Set up the schedule and add a Cron expression.
    • Select “simply run the conditions and actions without providing issues” for when the rule executes.
  2. Add an action – Send web requests:
    • Webhook URL: {{baseUrl}}/wiki/rest/obm/1.0/runbackup
    • Headers: Authorization: Basic <The output from (1-2)>
    • Webhook body: Refer to (2-2).
  3. Add another action – Log action and specify {{webhookResponse}} in the Log message.
  4. Name the rule “Site backup – Confluence Cloud” and save changes you have made
  5. Perform a test run using the [Run rule] button.
    • When you test the rule, histroy will be saved in the audit log
  6. Check the download link for the backup in Confluence.

Setting up for Jira is the same with these changes. 

  1. Schedule – same as above
  2. Action – Send web request
    • Webhook URL{{baseUrl}}/rest/backup/1/export/runbackup
    • Webhook body:{“cbAttachments”:”true”, “exportToCloud”:”true”}
  3. Remaining procedures – same as above
    Automating Site Backups for Jira and Confluence:
    Automating Site Backups for Jira and Confluence:
    Automating Site Backups for Jira and Confluence:

     

    That’s it! You’ve successfully set up custom automations using Jira Automation for Backups. 

    Jira Automation for Custom Emails

    Things to Remember

    • Jira enforces an upper limit on rule executions based on your subscription plan. This means that if you exceed this limit, you won’t receive a backup. To ensure uninterrupted service, especially if you already have a significant number of global automation rules, consider upgrading to a Premium subscription.
    • The backup link in Jira remains accessible for 14 days, while in Confluence, it’s available for 7 days. After this period, the link is replaced by the next backup. Consequently, you can only retrieve the backup file until the subsequent backup is completed. Therefore, it’s essential to download the backup file promptly if you detect any data loss; otherwise, the backup link will be overwritten by the one generated after the data loss incident.

    Conclusion:

    Automating backups is a game-changer for teams looking to optimize their time and productivity. By eliminating the need for manual intervention, automated backup solutions ensure data protection is consistently maintained without the risk of human error. This newfound reliability not only safeguards critical information but also frees up team members to focus on strategic tasks, fostering innovation and efficiency. Moreover, in times of unexpected data loss or system failures, automated backups act as a safety net, enabling swift recovery and minimal downtime. Embracing automation is not just a time-saver; it’s a strategic move that empowers teams to excel in a data-driven world.