# Packages
No description provided by the author
No description provided by the author
No description provided by the author
# README
confluence-dump
This little tool is inspired by the excellent ghorg
, and aims
to keep a local "database" of Markdown files in sync with a remote Atlassian Confluence instance.
It has many rough edges still, but here's roughly how you can use it:
- Get a "Personal Access Token" from your Atlassian account, see
https://id.atlassian.com/manage-profile/security/api-tokens, and store it safely. I use the
pass
password manager. - Install the tool:
go install github.com/toothbrush/confluence-dump/cmd/confluence-dump@latest
- Create a rudimentary config file at
~/.config/confluence-dump.yaml
(or elsewhere with the--config
flag) and populate it. For now the only documentation is the example config file in this repo. - Run it!
confluence-dump download
🎉
TODO
- Set a base href for Markdown conversion so links work
- deal with "personal spaces".. somehow
DONE
- Do not download pages we already have
- Download all users' blog posts, optionally
- Config/flags/env with Cobra
- remove all prints from anything not in
package main
- wrap API in a struct that has a logger
- Contexts on slow API calls
- Parallelise downloading among a few workers
- LocalMarkdownCache map is a field in a struct, in preparation for parallel stuff
- prune
- progress output
- Option to skip archived/non-current content.
- retry logic
- post-cmd to ... do things (e.g. clean empty directories or touch
.projectile
) - You can put the config file anywhere and set
CONFLUENCE_DUMP_CONFIG
to point there