Skip to main content

A utility for synchronizing page hierarchies across Confluence Data Center instances.

Project description

ConfluenceSync

A command-line utility for synchronizing page hierarchies across Confluence Data Center instances.

Features

Page hierarchy

Copy entire page hierarchies.

While copying, you can rename pages by adding a prefix or replacing a substring, similar to how Confluence's built-in Move Page utility works. If a page hasn't been modified since the last synchronization, it will not be copied again.

Source page versions are not copied. The destination page will start version numbering from the first copied version.

Attachments

All attachments are copied along with the page content.

If an attachment hasn't been modified since the last synchronization, it will not be copied again.

Draw.io diagrams

Supports copying draw.io diagrams, including embedded diagrams created by the corresponding plugin.

If an included draw.io diagram exists in the current page hierarchy being copied, the link will be updated to point to the new page.

If the included diagram is outside the current hierarchy, one of the diagrams linked to it will be used as the new source, and the remaining links will point to this new source page within the hierarchy.

Pages outside the hierarchy

Sometimes pages linked from the hierarchy are located outside the current page hierarchy. By default, such links are logged.

If the flag --sync-out-hierarchy is used, these pages are copied to the root of the destination space. Page name modifiers (prefixes or substring replacements) are applied to these pages as well. If a linked page belongs to a different space than the source, the name will be prefixed with : .

Installation

pip install confluence-syncer

Usage

confluence-syncer -h
Название Описание Пример
--source-url Source confluence URL "https://localhost:8090"
--source-token Source confluence PAT-token "12345"
--source-basic Source confluence login and password "username:password"
--source-space Source confluence space "MYSPACE"
--source-title Source confluence page title "MYPAGE"
--source-id Source confluence page id. Can be used instead if space and title. "12345"
--dest-url Destination confluence URL "https://localhost:9090"
--dest-token Destination confluence PAT-token "12345"
--dest-basic Destination confluence login and password "username:password"
--dest-space Destination confluence space "MYSPACE"
--dest-title Destination confluence page title "MYPAGE"
--dest-id Destination confluence page id. Can be used instead if space and title. "12345"
--replace-title-substr Replace a substring in the page title "[SRC]" "[DST]"
--start-title-with Add a prefix to the page title "PY "
--sync-out-hierarchy Copy pages outside the current page hierarchy --sync-out-hierarchy

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

confluence_syncer-1.0.1.tar.gz (23.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

confluence_syncer-1.0.1-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

Details for the file confluence_syncer-1.0.1.tar.gz.

File metadata

  • Download URL: confluence_syncer-1.0.1.tar.gz
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.11.13 Darwin/24.6.0

File hashes

Hashes for confluence_syncer-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b6a62aba2d9756b149baa338bf4140a35be53871a3e8febb27898e17f36035b4
MD5 fb9a8c1e329e7e64e2652edeed2b0d77
BLAKE2b-256 76a3ed55eb2c3164cc967d577e9f849c52f428b792493b9345f11141d050aeaf

See more details on using hashes here.

File details

Details for the file confluence_syncer-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: confluence_syncer-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 27.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.11.13 Darwin/24.6.0

File hashes

Hashes for confluence_syncer-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9179f547c3829c6592a7f7e6b70ce266a81c573d70cfb090c986fdae92769ea1
MD5 efdd20a06931566c284c71fb92458323
BLAKE2b-256 cedf7184e370e5216e3c9f99a5cd412bd832851a421eb5ff6cd29e828d6df232

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page