Public Repository

Last pushed: 2 years ago
Short Description
Scripts for backing up and restoring JIRA PostgreSQL database, attachments and avatars to Amazon S3
Full Description

JIRA AWS S3 backup and restore

Commands

  • jira-create-database - Create empty JIRA database
  • jira-backup-database - Backup JIRA database and data directory to S3
  • jira-restore-latest - Replace current JIRA data directory from backup. Restore database. Requires empty database (drop and create first)
  • jira-drop-database - Drop JIRA database

Prerequisites

  • AWS access keys in aws-credentials or environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
  • AWS config, especially region set if using eu-central-1
  • Mount volume /opt/jira-s3-backup/jira-config.ini with bucket name and other overrides

aws-credentials format

[default]
aws_access_key_id = <your_access_key_here>
aws_secret_access_key = <your_secret_key_here>

aws-config format

[default]
region = eu-central-1

/opt/jira-s3-backup/jira-config.ini format

[General]
# Change and uncomment defaults below to match your configuration
#DataDir = /var/atlassian/jira/data
S3Bucket = org-example-s3-bucket
#DbHost = localhost
#DbUser = jira
#DbName = jira
#Prefix = jira-backup
#ServiceName = jira

How to run a command

docker-compose run --rm <command>

Example:
docker-compose run --rm jira-backup

Docker Pull Command
Owner
ogisnas

Comments (0)