Download Workflow¶
Download fetches Confluence pages and converts them back into Markdown files on your local filesystem.
Basic Download¶
This downloads all child pages under page 12345 in space DEV and saves them as .md files in ./output.
Docker Download¶
docker run --rm -it \
-e CONFLUENCE__BASEURL=https://yoursite.atlassian.net \
-e CONFLUENCE__AUTHMODE=Basic \
-e CONFLUENCE__USEREMAIL=user@example.com \
-e CONFLUENCE__APITOKEN=your-token \
-v ${PWD}:/workspace \
confluencesynkmd \
--mode Download \
--path /workspace/output \
--conf-space DEV \
--conf-parent-id 12345
Path Hint
- Keep
-v ${PWD}:/workspaceunchanged. - For download,
--pathpoints to the target folder inside the container (for example/workspace/output). ${PWD}is your current local directory.
docker run --rm -it `
-e CONFLUENCE__BASEURL=https://yoursite.atlassian.net `
-e CONFLUENCE__AUTHMODE=Basic `
-e CONFLUENCE__USEREMAIL=user@example.com `
-e CONFLUENCE__APITOKEN=your-token `
-v ${PWD}:/workspace `
confluencesynkmd `
--mode Download `
--path /workspace/output `
--conf-space DEV `
--conf-parent-id 12345
Path Hint
- Keep
-v ${PWD}:/workspaceunchanged. - For download,
--pathpoints to the target folder inside the container (for example/workspace/output). ${PWD}is your current local directory.
docker run --rm -it ^
-e CONFLUENCE__BASEURL=https://yoursite.atlassian.net ^
-e CONFLUENCE__AUTHMODE=Basic ^
-e CONFLUENCE__USEREMAIL=user@example.com ^
-e CONFLUENCE__APITOKEN=your-token ^
-v %cd%:/workspace ^
confluencesynkmd ^
--mode Download ^
--path /workspace/output ^
--conf-space DEV ^
--conf-parent-id 12345
Path Hint
- Keep
-v %cd%:/workspaceunchanged. - For download,
--pathpoints to the target folder inside the container (for example/workspace/output). %cd%is your current local directory.
Download by Root Page Title¶
Instead of using a numeric page ID, you can specify the root page by title:
Directory Structure Reconstruction¶
If pages were originally uploaded with --keep-hierarchy, ConfluenceSynkMD restores the exact directory structure on download using source-path metadata that was embedded during upload.
Example output:
output/
├── getting-started.md
├── guides/
│ ├── setup.md
│ └── advanced.md
└── api/
└── endpoints.md
Download Limitations¶
Important Limitations
- No incremental download — Download always fetches the full subtree; there is no delta sync
- Markdown fidelity — Not all Confluence macros have a Markdown equivalent. Complex macro formatting may be simplified
- Attachments — Images and attachments referenced by pages are downloaded alongside the Markdown files
Typical Workflows¶
Initial Migration¶
Then review and edit the generated Markdown, commit to Git, and use Upload for ongoing sync.
Sync Back Changes¶
If someone edits a page directly in Confluence:
Then commit the updated .md files to your repository.