All Projects → datreeio → jira-backup-py

datreeio / jira-backup-py

Licence: MIT license
python script to create, download and upload to s3 your Jira or Confluence cloud instance backup

Programming Languages

python
139335 projects - #7 most used programming language
Batchfile
5799 projects

Projects that are alternatives of or similar to jira-backup-py

docker-atlassian
A docker-compose orchestration for JIRA Software and Confluence based on docker containers.
Stars: ✭ 13 (-63.89%)
Mutual labels:  jira, backup, confluence
atlassian-connect-core
[Laravel 5.5+] The easiest way to create an add-on for the JIRA and Confluence
Stars: ✭ 42 (+16.67%)
Mutual labels:  jira, confluence
vscode-confluence-markup
Visual Studio Code extension for Confluence® markup
Stars: ✭ 21 (-41.67%)
Mutual labels:  jira, confluence
Confluence-and-Jira
Docker部署并破解Jira、Confluence及相关插件;若图片加载不出来可以访问我的博客原文查看
Stars: ✭ 60 (+66.67%)
Mutual labels:  jira, confluence
data-center-helm-charts
Helm charts for Atlassian's Data Center products
Stars: ✭ 77 (+113.89%)
Mutual labels:  jira, confluence
vbo365-rest-self-service
Unofficial Self-Service Web Portal for Veeam Backup for Microsoft Office 365
Stars: ✭ 24 (-33.33%)
Mutual labels:  backup
tickets
Basic ticket tracker build on Laravel PHP framework
Stars: ✭ 18 (-50%)
Mutual labels:  jira
sicksync
Don’t accept the available as the preferable. Go the extra mile with extra speed.
Stars: ✭ 67 (+86.11%)
Mutual labels:  backup
OBS Settings Manager
Backup your OBS Studio profiles and manage them in an easy, user friendly way.
Stars: ✭ 20 (-44.44%)
Mutual labels:  backup
wt4
Work tracker for JIRA
Stars: ✭ 26 (-27.78%)
Mutual labels:  jira
ansible-backup
Ansible daily backup role
Stars: ✭ 25 (-30.56%)
Mutual labels:  backup
open2fa
Two-factor authentication app with import/export for iOS and macOS. All codes encrypted with AES 256. FaceID & TouchID support included. Written with love in SwiftUI ❤️
Stars: ✭ 24 (-33.33%)
Mutual labels:  backup
planb
PlanB - automating remote backups and snapshots with zfs/rsync
Stars: ✭ 24 (-33.33%)
Mutual labels:  backup
Junction
Use git to manage content in Confluence Cloud
Stars: ✭ 22 (-38.89%)
Mutual labels:  confluence
myaas
Fresh Mysql instances for your developers in seconds
Stars: ✭ 26 (-27.78%)
Mutual labels:  backup
underbase
MongoDB schema and data migration library based on semver
Stars: ✭ 19 (-47.22%)
Mutual labels:  backup
virt-backup
Fully backup your KVM Virtual Machines
Stars: ✭ 27 (-25%)
Mutual labels:  backup
proxmox toolbox
A toolbox to get the firsts configurations of Proxmox VE / BS done in no time
Stars: ✭ 158 (+338.89%)
Mutual labels:  backup
b2-sdk-php
SDK for Backblaze's B2 storage service.
Stars: ✭ 75 (+108.33%)
Mutual labels:  backup
IAmLazy
Easily backup and restore your tweaks
Stars: ✭ 37 (+2.78%)
Mutual labels:  backup

datree-badge

Introduction

Jira and Confluence are not (officially) supporting the option of creating automatic backups for their cloud instance. This project was created to provide a fully automated infrastructure for backing up Atlassian Cloud Jira or Confluence instances on a periodic basis.

There are shell and bash scripts out there, which were created in order to download the backup file locally without the use of the "backup manager" UI, but most of them are not maintained and throwing errors. So, this project is aiming for full backup automation, and therefore this is the features road map:

Create a script in python
Support creating config.json from user input ('wizard')
Download backup file locally
Add an option to stream backup file to S3
Check how to manually create a cron task on OS X / Linux
Check how to manually create a schedule task on windows
🔲 Support adding cron / scheduled task from script    

Installation

Prerequisite:

python 2.7.x or python 3.x.x
virtualenv installed globally (pip install virtualenv)

Instructions:

  1. Create and start virtual environment (in this example, the virtualenv will be called "venv")
  2. Install requirements
$(venv) pip install -r requirements.txt
  1. Generate an API token at https://id.atlassian.com/manage/api-tokens
    Screenshot
  2. Fill the details at the config.yaml file or run the backup.py script with '-w' flag
  3. Run backup.py script with the flag '-j' to backup Jira or '-c' to backup Confluence
$(venv) python backup.py 

Screenshot

What's next?

It depends on your needs. I, for example, use this script together with serverless to create a periodic AWS lambda which triggered every 4 days, creating a backup and upload it directly to S3.

There is a more "stupid" option to get the same result - by creating a cron / scheduled task on your local machine:

  • OS X / Linux: set a cron task with crontab
echo "* * * * * cd %script dir% && %activate virtualenv% && python backup.py > %log name% 2>&1" | crontab -

Example for adding a cron task which will run every 4 days, at 10:00

echo "0 10 */4 * * cd ~/Dev/jira-backup-py && source venv/bin/activate && python backup.py > backup_script.log 2>&1" | crontab -
  • Windows: set a scheduled task with task scheduler
schtasks /create /tn "%task name%" /sc DAILY /mo %number of days% /tr "%full path to win_task_wrapper.bat%" /st %start time%

Example for adding a scheduled task which will run every 4 days, at 10:00

schtasks /create /tn "jira-backup" /sc DAILY /mo 4 /tr "C:\jira-backup-py\win_task_wrapper.bat" /st 10:00

Changelog:

  • 04 SEP 2020 - Support Confluence backup
  • 16 JAN 2019 - Updated script to work w/ API token, instead personal Jira user name and password

Resources:

JIRA support - How to Automate Backups for JIRA Cloud applications
Atlassian Labs' automatic-cloud-backup script
A more maintainable version of Atlassian Labs' script

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].