Jira & Confluence Full-Instance Backup
Automated full-instance backup of Jira Cloud and Confluence Cloud for
the Atlassian Standard plan. Run it by hand from an interactive menu, or
unattended from Jenkins/cron. Backups are packed as .7z (AES-256 encrypted when
you set ARCHIVE_PASSWORD) and shipped to the cloud of your choice — Google Cloud Storage, AWS S3 (and S3-compatible stores),
Azure Blob, or a local/mounted directory — with notifications to any channel
you use: Slack, Microsoft Teams, Discord, Google Chat, email, or a generic
webhook.
Why?
On March 30, 2026, Atlassian deprecated the Backup Manager API for Jira Cloud. Direct API-token calls to the backup endpoint now return:
HTTP 403
{"error":"This feature is only accessible from the UI."}
The replacement v2 Backup & Restore API is Premium/Enterprise only, leaving Standard-plan customers with no automation path for full-instance backup — only the manual UI button. This tool restores that automation by replaying the browser UI session for Jira, while Confluence uses the OBM REST API (which still accepts API tokens). Both flow into one pipeline that archives, encrypts, uploads, and notifies.
For per-project Jira backup/restore, see the sibling project jira-project-backup-restore.
Features
| Feature | Description |
|---|---|
| Full-instance backup | Jira (all projects, attachments, avatars, logos) + Confluence (all spaces, attachments) in one run |
| Resilient downloads | Large exports resume (HTTP Range) and retry on mid-stream connection drops — a dropped connection no longer loses the whole file |
| Run anywhere | Interactive menu for VMs/manual use and CLI flags for Jenkins/cron — same codebase; the Jenkinsfile runs on Linux and Windows agents |
| One-paste Jenkins setup | Export a Script Console script from your config that creates all credentials + the pipeline job — no manual credential forms |
| Pluggable storage | GCS · AWS S3 / S3-compatible (R2, B2, MinIO, Spaces) · Azure Blob · local — pick one flag; only that SDK is needed |
| Pluggable notifications | Slack · Teams · Discord · Google Chat · email (SMTP) · generic webhook — any combination, no extra deps |
| Optional encryption | .7z AES-256 with encrypted headers (filenames hidden) whenever ARCHIVE_PASSWORD is set — blank (the default) = unencrypted; --no-encrypt forces a plain archive |
| Pure-Python archiving | .7z via py7zr — no 7-Zip binary, so it runs in a bare python:3.x container |
| Configurable compression | 0 (store) … 9 (ultra) |
| Custom filenames | Name templates: {product} {site} {date} {time} {datetime} {timestamp} |
| Integrity & housekeeping | A sha256 manifest per archive + --validate, --cleanup, --skip-existing, --dry-run |
| Cooldown-aware | Atlassian's 48h throttle (HTTP 412) is detected — by default the most recent existing backup is downloaded instead; no false failures |
| Connection test | Validates Jira cookies, Confluence token and storage write access, and shows how many days the Jira session token has left |
Install
Via PyPI (recommended) — provides the jira-confluence-backup command:
pip install jira-confluence-full-instance-backup # core (requests, py7zr)
pip install "jira-confluence-full-instance-backup[gcs]" # optional: Google Cloud Storage SDK
pip install "jira-confluence-full-instance-backup[s3]" # optional: AWS S3 / S3-compatible SDK (boto3)
pip install "jira-confluence-full-instance-backup[azure]" # optional: Azure Blob SDK
pip install "jira-confluence-full-instance-backup[ui]" # optional: colored output + progress bars (rich)
pip install "jira-confluence-full-instance-backup[all]" # optional: all of the above
Or as an isolated app with pipx — keeps its dependencies out of your global Python:
pipx install jira-confluence-full-instance-backup
pipx install "jira-confluence-full-instance-backup[s3]" # with a storage SDK ([gcs] / [azure] / [all] likewise)
Upgrade:
pip install -U jira-confluence-full-instance-backup # pipx: pipx upgrade jira-confluence-full-instance-backup
Or clone and run from source (development):
git clone https://github.com/davidmalko87/jira-confluence-full-instance-backup.git
cd jira-confluence-full-instance-backup
pip install -r requirements.txt # + requirements-<provider>.txt / requirements-ui.txt as needed
python main.py --help # same flags as jira-confluence-backup
Requirements: Python 3.10+ only — archiving is pure-Python (py7zr), so no 7-Zip binary is needed.
Where files live: everything is relative to the folder you run
jira-confluence-backupfrom (pip install or clone alike):.envis read from there (or from--env-file PATH;--configure/--refresh-cookiesstill save./.env), downloads go to./out, archives + manifests to./archive(override with--out/--archive-dir), and the generated.groovyfiles and a relativelocalSTORAGE_DEST(e.g../backups) land there too. Nothing is written to your home directory or the install location, and there is no log file — output goes to the console.out/andarchive/are not emptied between runs and--archive/--uploadprocess every file in them (older archives get re-uploaded under the current date folder), so run scheduled jobs from a dedicated folder (cd /srv/atlassian-backup && jira-confluence-backup --all) and empty both once a run has uploaded.
Running in CI / containers
Backups run in a bare python:3.x container — no system packages:
- Install just the package with your cloud SDK extra, e.g.
pip install "jira-confluence-full-instance-backup[gcs]"— or, from a clone,pip install -r requirements.txtplusrequirements-<provider>.txt. Archiving is pure-Python (py7zr) — no 7-Zip binary required. - A
'…/.cache/pip' is not writablewarning under a non-root container uid is harmless — pip disables its cache and installs anyway. - Disk: peak workspace ≈ the raw exports + their archives — roughly 2× the export size; size the volume accordingly.
- CPU: downloads are network-bound, but TLS and py7zr packing are CPU-bound. A hard CPU cap noticeably slows the Archive step, and can stretch downloads long enough to trigger mid-stream drops — which the resumable downloader now survives (tunable via
BACKUP_DOWNLOAD_*, set as real environment variables). If archive time matters, give that stage more CPU or lowerARCHIVE_COMPRESSION.
Quick Start
1. Configure
Run the guided setup from the folder you will run backups from — it writes ./.env for you:
jira-confluence-backup --configure # same as menu -> 13) Configure credentials
It explains every field — including how to obtain the Jira cookie blob — and validates what you paste.
Prefer to edit the file yourself? The .env.example template is not part of the PyPI package, so download it as .env and fill in real values (in a clone, cp .env.example .env does the same; .env is gitignored):
curl -o .env https://raw.githubusercontent.com/davidmalko87/jira-confluence-full-instance-backup/master/.env.example
Hidden input is intentional. When entering secrets (API token, cookie blob, passwords), nothing is echoed to the screen — the prompt shows
[input hidden — paste, then Enter]. Paste and press Enter; the tool confirms back (e.g. "captured 5 cookie(s); required present") so you know it registered, without ever displaying the value. Use Test connections to verify.
2. Run — interactive menu
jira-confluence-backup --help # all flags
jira-confluence-backup # interactive menu (also: python -m backup); enter 0 to exit
From a clone, use python main.py in place of jira-confluence-backup — the flags are identical.
=== Atlassian Full-Instance Backup ===
Jira https://<your-site>.atlassian.net
Storage s3:my-backups
Notify slack
Backup
1) Jira 2) Confluence 3) Both
4) Full run (backup -> archive -> upload -> notify)
5) Fetch existing Jira backup (no new trigger)
Pipeline steps
6) Archive ./out 7) Upload ./archive
Verify & manage
8) Test connections 9) Validate backup
10) Cleanup backups 11) List local backups
Configuration
12) Show config 13) Configure credentials
14) Refresh cookies 15) Export Jenkins setup
0) Exit
3. Run — CLI (automation)
CLI — full run:
jira-confluence-backup --all # backup both -> archive -> upload -> notify
jira-confluence-backup --all --dry-run # preview only, no API calls / no cooldown burn
jira-confluence-backup --all --env-file /etc/atlassian-backup/.env --out /data/out --archive-dir /data/archive
CLI — individual steps:
jira-confluence-backup --backup jira,confluence --archive --upload --notify
jira-confluence-backup --backup jira --download-existing # fetch the latest existing Jira backup, no new trigger
jira-confluence-backup --archive --compression 9 --no-encrypt
CLI — verify & housekeeping:
jira-confluence-backup --test-connection # exit 0 only if Jira, Confluence and storage all pass
jira-confluence-backup --validate # check the archive(s) against their manifest(s)
jira-confluence-backup --cleanup --keep-days 28 # prune local backups (see Integrity & housekeeping)
CLI — configuration & Jenkins:
jira-confluence-backup --configure # guided setup, saves ./.env
jira-confluence-backup --show-config # print the config, secrets masked
jira-confluence-backup --refresh-cookies # paste a fresh cURL -> ./.env + update-jira-cookies.groovy
jira-confluence-backup --export-jenkins # write jenkins-setup.groovy (credentials + job)
| Modifier | Effect |
|---|---|
--dry-run |
Preview the flow without API calls, archiving or uploads |
--skip-existing |
Skip a product that already has a complete backup today |
--download-existing |
Jira: fetch the latest existing backup instead of triggering one — only with --backup jira (ignored by --all) |
--compression 0-9 / --no-encrypt |
Override ARCHIVE_COMPRESSION / write an unencrypted .7z |
--keep-days N |
With --cleanup: also delete local archive files older than N days |
--out DIR / --archive-dir DIR |
Download / archive folders (default ./out / ./archive) |
--env-file PATH |
Read config from PATH instead of ./.env |
--build-url URL |
Build link included in notifications |
Modifiers need an action flag (--all, --backup, --archive, --upload, --notify, --validate, --cleanup, …) — on their own they open the interactive menu, which needs a terminal (so not under cron).
Console output uses plain
[INFO]/[OK]tags (no emoji) by default and never crashes a legacy Windows console; a few messages contain—/→, which an old code-page console may show garbled. Install theuiextra for colored output and progress bars.
How It Works
Setup -> Jira -> Confluence -> Archive -> Upload -> Notify
(venv) (cookies) (API token) (7z, opt. (<provider>:// (your
AES-256) <dest>/YYYY/MM/) channels)
Stages are independent, but in Jenkins FAILURE_POLICY decides what a Jira failure does: the default balanced stops the build on expired cookies (exit 2) before the Confluence stage runs, while resilient (or ON_CREDENTIALS=unstable) marks the build UNSTABLE and still backs up, archives and uploads Confluence. With jira-confluence-backup --all (or --backup … --archive --upload) the Confluence backup still runs, but a failed Jira backup currently stops the run before Archive / Upload — run jira-confluence-backup --archive --upload afterwards to ship it.
Auth model
| Product | Endpoint | Auth | Why |
|---|---|---|---|
| Jira | /rest/backup/1/export/runbackup |
Session cookies + UI headers | Atlassian gates this endpoint to UI sessions only — API tokens return 403 |
| Confluence | /wiki/rest/obm/1.0/runbackup |
Basic (email + API token) | OBM never received the UI-only lockdown |
Do not replace the Jira side with an API token — it is gated to browser sessions and returns
403 "This feature is only accessible from the UI.". One dedicated Atlassian admin account supplies both: its API token (for Confluence) and its browser session cookies (for Jira).
Storage backends
Set STORAGE_PROVIDER + STORAGE_DEST (environment or .env; the low-level python -m backup.upload module that the Jenkinsfile runs also takes --provider / --dest). Only the chosen SDK is imported; a missing one prints a pip install hint. Install the SDK as a package extra, e.g. pip install "jira-confluence-full-instance-backup[s3]"; from a clone, use the matching requirements-<provider>.txt.
| Provider | STORAGE_DEST |
Optional SDK | Credentials |
|---|---|---|---|
gcs |
bucket | [gcs] extra (clone: requirements-gcs.txt) |
GOOGLE_APPLICATION_CREDENTIALS (SA JSON) |
s3 |
bucket | [s3] extra (clone: requirements-s3.txt) |
AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION |
azure |
container | [azure] extra (clone: requirements-azure.txt) |
AZURE_STORAGE_CONNECTION_STRING |
local |
directory | (none) | (none) |
S3-compatible stores (Cloudflare R2, Backblaze B2, MinIO, DigitalOcean Spaces): use s3 plus S3_ENDPOINT_URL. Objects are written to <dest>/YYYY/MM/ by default (STORAGE_LAYOUT: year | year-month | year-month-day | flat). Retention is the bucket's job (set a lifecycle rule); use a write-only identity where possible.
Notification channels
NOTIFY_CHANNELS is a comma list — pick any. One report is built and rendered per channel; a failed channel is logged but never blocks the rest.
| Channel | Needs | Notes |
|---|---|---|
slack / discord / teams / google-chat |
NOTIFY_WEBHOOK_URL |
platform-specific incoming webhook |
email |
SMTP_* |
stdlib SMTP; port 465 → SSL, else STARTTLS |
webhook |
NOTIFY_WEBHOOK_URL |
raw JSON POST (PagerDuty / Opsgenie / your API) |
Email tip: use your provider's real SMTP host (e.g.
smtp.gmail.com,smtp.office365.com) — a wrong host shows up as a connection timeout — and an App Password for Gmail or MFA-enabled Microsoft 365. Settings table + fixes in TROUBLESHOOTING.
Archiving: encryption, compression, names
- Encryption (on when
ARCHIVE_PASSWORDis set): 7-Zip AES-256 with encrypted headers. The password is blank by default, which gives an unencrypted archive — set one (Configure prompts for it);--no-encryptforces a plain archive even when a password is set. - Compression:
ARCHIVE_COMPRESSION/--compression0–9. - Names:
PRODUCT_NAME_TEMPLATEnames each product file — the downloaded.zipand, in the default per-product mode, its.7z;ARCHIVE_NAME_TEMPLATEnames the single.7zand is used only withARCHIVE_MODE=combined. Tokens:{product} {site} {date} {time} {datetime} {timestamp} {year} {month} {day}. Defaults:{product}-{date}andatlassian-backup-{date}. Keep{product}inPRODUCT_NAME_TEMPLATE— without it Jira and Confluence get the same file name and collide.
Integrity & housekeeping
Each archive gets a manifest next to it — <archive-stem>.manifest.json (e.g. jira-<date>.manifest.json) in the default per-product mode, manifest.json in combined mode — with the timestamp, products, per-file + archive sha256, complete: true and encrypted; it is uploaded too.
--validate— re-checksum the local archive(s) against their manifest(s).--cleanup [--keep-days N]— remove.7zfiles in./archivethat no complete manifest references (failed runs) and, once any complete manifest exists, every file in./out(including raw exports that were not archived yet); with--keep-days N, also files in./archiveolder than N days.--skip-existing— skip a product already backed up today.--dry-run— preview any flow without API calls, archiving, or uploads.
Jenkins
The Jenkinsfile is cross-platform — it runs on both Linux (sh) and Windows (powershell) agents. The agent needs Python 3.10+ only — archiving is pure-Python (py7zr), so no 7-Zip binary is required. It runs weekly (cron('H 2 * * 4')) and installs only the selected provider's SDK.
📖 Full step-by-step guide (prerequisites, plugins, every credential, troubleshooting): docs/JENKINS_SETUP.md. The summary below is the quick version.
Fast setup — one paste (recommended)
- Configure locally:
jira-confluence-backup --configure(or menu → Configure credentials; writes./.env). - Generate the setup script:
jira-confluence-backup --export-jenkins(or menu → Export Jenkins setup). This writesjenkins-setup.groovyto the current folder (gitignored in a clone). - In Jenkins: Manage Jenkins → Script Console, paste the file's contents, Run. It creates every credential (with the exact IDs) and the
atlassian-full-backuppipeline job pointing at this repo. - Open the job → Build Now, then delete
jenkins-setup.groovy(it contains secrets).
The job uses Pipeline script from SCM, so Jenkins reads the
Jenkinsfilestraight from the repo at build time — there is no Jenkinsfile to generate or maintain inside Jenkins, and updates flow automatically from the repo.
Manual setup
The Jenkinsfile has nothing to edit — it reads the non-secret settings from Jenkins global environment variables at build time (the fast setup creates them). Set them under Manage Jenkins → System → Global properties → Environment variables (storage targets and notification channels can also be overridden per run in Build with Parameters):
| Global env var | Example |
|---|---|
SITE_JIRA |
https://<YOUR_SITE>.atlassian.net |
SITE_CONFLUENCE |
https://<YOUR_SITE>.atlassian.net/wiki |
STORAGE_PROVIDER |
gcs (gcs | s3 | azure | local, or a comma list) |
STORAGE_DEST |
<YOUR_BUCKET> (for local: an absolute path on the agent, outside the job workspace) |
NOTIFY_CHANNELS |
slack (any comma list) |
Create a Pipeline job → Pipeline script from SCM → Git → this repo → */master → Script Path Jenkinsfile, and add the credentials below (IDs must match exactly — the pipeline binds only the ones your config needs):
| Credential ID | Kind | Used when |
|---|---|---|
jira-cookies |
Secret text | always (Jira) |
atlassian-email, atlassian-api-token |
Secret text | always (Confluence) |
archive-password |
Secret text | always (may be blank = unencrypted) |
gcp-backup-sa-key |
Secret file | STORAGE_PROVIDER=gcs |
aws-access-key-id, aws-secret-access-key |
Secret text | STORAGE_PROVIDER=s3 |
azure-storage-connection-string |
Secret text | STORAGE_PROVIDER=azure |
notify-webhook-url |
Secret text | chat/webhook channels |
smtp-host/from/to/user/password |
Secret text | email channel |
No secrets live in the repo — they stay in the Jenkins Credentials store.
Use your own repo, run offline, or pin a version
By default the job clones this tool from the public GitHub repo on master, fresh on every build. If GitHub being reachable at build time is a concern — it could be removed, rate-limited, or blocked on a locked-down network — or you simply want to lock to a known version, repoint the job at a source you control. Nothing in the pipeline needs GitHub specifically: checkout scm clones whatever remote the job is configured with.
Set these in Configure → "Jenkins job source" (or in .env) before running the export, and the generated jenkins-setup.groovy wires them into the job:
| Goal | Setting(s) | Example |
|---|---|---|
| Mirror to your own GitLab / Bitbucket (keep it internal) | JENKINS_REPO_URL (+ JENKINS_REPO_CREDENTIALS_ID if private) |
https://gitlab.yourco/team/atlassian-backup.git |
| Download once, reuse offline — clone to the Jenkins box; no internet at build time, GitHub can vanish | JENKINS_REPO_URL = a local file:// path |
file:///srv/jenkins/atlassian-backup |
Pin a version instead of always-latest master |
JENKINS_BRANCH = a tag or commit |
refs/tags/v1.3.2 |
For a private mirror, create a Jenkins credential (username + token, or an SSH deploy key) and put its ID in JENKINS_REPO_CREDENTIALS_ID — the secret stays in Jenkins, never in a file or the URL. No Jenkinsfile change is needed, and the export updates the job in place, so changing the source later is just: set the values → re-export → paste. Full walkthrough (including the one-time git clone for the offline case and how to update a pinned clone): docs/JENKINS_SETUP.md → "Use your own repo / run offline / pin a version".
Cookie Refresh Procedure
The Jira tenant.session.token JWT expires roughly every 30 days. When it does, Atlassian rejects the backup request with 403 "This feature is only accessible from the UI." and the Jenkins Jira stage exits with code 2 (Cookie auth rejected — cookies likely expired); jira-confluence-backup prints the same error and exits 1. (Test connections describes that same 403 body as a UI-only-gate rejection "not a cookie problem" — the fix is identical either way: a fresh Copy as cURL.) Refresh takes ~60 seconds:
- Log into Atlassian as the backup admin account.
- Open
https://<your-site>.atlassian.net/secure/admin/CloudExport.jspa. - F12 → Network, reload the page, right-click the
CloudExport.jsparequest (or any/rest/backup/1/export/...request) → Copy → Copy as cURL. - Paste the whole cURL into
jira-confluence-backup --refresh-cookies(or the menu's Configure credentials; both extract the cookies and save./.env—--refresh-cookiesalso writesupdate-jira-cookies.groovyfor Jenkins), or into thejira-cookiesJenkins credential /JIRA_COOKIESin.env.
The cookie blob must contain at least tenant.session.token and atlassian.xsrf.token. Other cookies such as JSESSIONID / AWSALB / AWSALBCORS are load-balancer/servlet cookies that some instances set and others don't — they're forwarded automatically when present, and not required. Using a real request's "Copy as cURL" (rather than the Application→Cookies list) ensures any that are needed come along.
Test connections shows how many days the session token has left, and every notification warns when it is within 7 days of expiry.
Response Code Semantics
Exit codes below are those of the backup modules the Jenkinsfile runs (python -m backup.jira / backup.confluence). The jira-confluence-backup console script returns only 0 (success) or 1 (failure), plus 2 for a command-line usage error.
| Code | Meaning | Behavior |
|---|---|---|
| 200 | Backup queued / status returned | Continue polling |
| 403 | Auth rejected (UI-only gate) — usually expired cookies | Exit 2 — refresh Jira cookies (a 403 with any other body exits 1) |
| 412 | 48-hour cooldown active | Default (JIRA_COOLDOWN_ACTION=download-existing): download the most recent existing backup instead. If there is none, or the action is skip: marker file + exit 3, which the default balanced policy marks UNSTABLE (yellow) — not a failure. The console script exits 0 here |
| 400 | Body schema rejected | Investigate body (Atlassian schema change) |
| 406 | Confluence cosmetic error | Ignore — backup actually started |
Configuration Reference
All values come from environment variables, optionally loaded from ./.env or --env-file (see .env.example); a real environment variable wins over the same key in .env. In Jenkins they are bound from the Credentials store at runtime — never from a file in the repo.
| Env var | Purpose |
|---|---|
SITE_JIRA / SITE_CONFLUENCE |
Atlassian base URLs |
JIRA_COOKIES |
Browser session cookie blob for Jira |
ATL_EMAIL / ATL_TOKEN |
Confluence Basic auth |
ARCHIVE_PASSWORD |
.7z AES-256 passphrase (blank = unencrypted) |
ARCHIVE_COMPRESSION / ARCHIVE_MODE |
compression 0–9; per-product vs combined .7z |
PRODUCT_NAME_TEMPLATE / ARCHIVE_NAME_TEMPLATE |
Filename templates |
STORAGE_PROVIDER / STORAGE_DEST |
Backend + bucket/container/dir (aligned comma lists for multiple targets, e.g. gcs,s3 + bucketA,bucketB) |
STORAGE_LAYOUT |
date-folder depth for object keys: year-month (default) / year / year-month-day / flat |
STORAGE_PREFIX |
optional base prefix before the date folders — read only by python -m backup.upload (the Jenkins Upload stage; set it as a Jenkins global env var, the export does not carry it); ignored by jira-confluence-backup |
BACKUP_CRON |
Jenkins schedule (default H 2 * * 4) |
POLL_TIMEOUT |
max seconds to wait per backup (default 21600 = 6h); jira-confluence-backup currently applies it to Jira only — Confluence waits up to the default there |
FAILURE_POLICY / JIRA_COOLDOWN_ACTION / ON_* |
pipeline behaviour per outcome (balanced / resilient / strict + per-outcome overrides) |
BACKUP_DOWNLOAD_* |
resumable-download tunables (max attempts / read timeout / backoff) — set them as real environment variables; jira-confluence-backup currently ignores them in .env |
PYTHON_BIN |
Jenkins agent Python path (blank = auto-detect; set if python isn't on the service PATH) |
S3_ENDPOINT_URL |
S3-compatible endpoint (s3 only) |
GOOGLE_APPLICATION_CREDENTIALS / AWS_* / AZURE_STORAGE_CONNECTION_STRING |
Provider credentials |
NOTIFY_CHANNELS |
Comma list of channels |
NOTIFY_WEBHOOK_URL / SMTP_* |
Notification delivery |
NOTIFY_SUBJECT_TEMPLATE / NOTIFY_BODY_TEMPLATE |
custom notification text (placeholders) |
Project Structure
jira-confluence-full-instance-backup/
├── main.py # Convenience shim (python main.py)
├── Jenkinsfile # Declarative pipeline (provider/channel driven)
├── pyproject.toml # Packaging + console script + ruff config
├── .env.example # Local-testing template (real .env is gitignored)
├── requirements.txt # Core (requests, py7zr)
├── requirements-{gcs,s3,azure,ui}.txt # Optional extras
├── CHANGELOG.md # Release notes
├── CONTRIBUTING.md # Dev setup, versioning, release steps
├── LICENSE # MIT
├── .github/workflows/ # ci.yml (ruff + pytest), publish.yml (PyPI)
├── docs/JENKINS_SETUP.md # Full Jenkins setup guide
├── docs/RESTORE.md # How to restore a backup (per product)
├── docs/TROUBLESHOOTING.md # Common errors, fixes and FAQ
├── tests/ # pytest suite
└── backup/
├── __init__.py # Package version (__version__)
├── __main__.py # python -m backup
├── cli.py # Dual-mode entrypoint (menu + CLI)
├── jira.py # Cookie-authenticated Jira backup
├── confluence.py # OBM Basic-auth Confluence backup
├── transfer.py # Resumable, retrying downloads (HTTP Range + resume)
├── diskspace.py # Pre-flight free-disk check before downloads
├── archive.py # py7zr .7z (optional AES-256, configurable level)
├── upload.py # Multi-provider upload (gcs/s3/azure/local)
├── notify.py # Multi-channel notifier
├── manifest.py # Manifests: completeness + sha256 integrity
├── config.py # Env/.env config + Configure-menu persistence
├── jenkins_export.py # Generate Script Console Groovy (creds + job)
├── naming.py # Filename templating
└── ui.py # Console UI (rich-optional, ASCII-safe)
Known Limitations
These are Atlassian platform constraints, not tool limitations:
- 48h Jira cooldown between full-instance backups (weekly cadence is fine).
- Cookie lifetime ~30 days; monthly manual refresh required.
- Confluence Filestore retention ~14 days (the tool downloads immediately, so this affects only the source file).
- No restore automation — restoring a full-instance backup is manual via Atlassian's UI; for per-project restore use
jira-project-backup-restore.
Troubleshooting
Run Test connections (menu option 8, or jira-confluence-backup --test-connection) first — it pinpoints which of Jira /
Confluence / storage is misconfigured. Common errors and fixes (403 vs the 204
"success", cookie refresh, the 48-hour cooldown, storage permissions, Jenkins)
are in docs/TROUBLESHOOTING.md.
Restoring
Restore is manual (via Atlassian's import UI) and has product-specific paths and Cloud limitations — notably, a Cloud site with both Jira and Confluence can't do a full Confluence site import and must restore space-by-space. See docs/RESTORE.md.
Contributing
See CONTRIBUTING.md. In short: no secrets in the repo, keep cloud SDKs optional, ASCII-only console output, and test auth/backup changes against a non-prod Atlassian instance. Do not switch Jira to API-token auth (see Auth model).
License
MIT — see LICENSE.
Related
jira-project-backup-restore— per-project Jira Cloud backup/restore via REST API.
Metadata
Release files for jira-confluence-full-instance-backup 1.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jira_confluence_full_instance_backup-1.3.3.tar.gz | 87.9 kB | With provenance | Details for jira_confluence_full_instance_backup-1.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jira_confluence_full_instance_backup-1.3.3-py3-none-any.whl | Python 3 | none | any | Details for jira_confluence_full_instance_backup-1.3.3-py3-none-any.whl |
Total release size: 154.0 kB
Release files / jira_confluence_full_instance_backup-1.3.3.tar.gz
| Download URL | jira_confluence_full_instance_backup-1.3.3.tar.gz |
|---|---|
| Size | 87.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6485d93c5d49f0d6e7b21f42cb67b5252d08a4d5f7c2427f928cb26b5cfff466
|
|
BLAKE2b-256 checksum How to use checksums |
f2a01c38927794657c61fadb206ef1dce309be5bbf720c2a9e9d20f3ccd43474
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logRelease files / jira_confluence_full_instance_backup-1.3.3-py3-none-any.whl
| Download URL | jira_confluence_full_instance_backup-1.3.3-py3-none-any.whl |
|---|---|
| Size | 66.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
88391fc33b475a7538ab847d6bac5cc17f6573e9b4de91108409826731a12bbf
|
|
BLAKE2b-256 checksum How to use checksums |
36bae5fcc4d8032396d6613168772a10be00a2ef278c18b3adedaacca7c93e8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logSecurity for jira-confluence-full-instance-backup 1.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for jira_confluence_full_instance_backup-1.3.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.