A tool to automatically backup your Notion workspace with Docker. This tool will generate an HTML and a Markdown copy of your workspace every day and keep today's, yesterday's and the first of each month's backup.
This is the generated directory strucutre:
/notion-backup/
├── html/
│ ├── archive/
│ │ ├── june/
│ │ └── may/
│ ├── today/
│ └── yesterday/
└── markdown/
├── archive/
│ ├── june/
│ └── may/
├── today/
└── yesterday/
- Copy the example
docker-compose.yml - Create a
.envfile with the following content:NOTION_TOKEN=%Insert the token_v2 cookie from notion.so% NOTION_SPACE_ID=%Insert the id of the workspace you want to backup%
- Copy the example
swarm.docker-compose.yml - Create a file named
notion_tokenfor your token_v2 cookie from notion.so and a file namednotion_space_idfor the id of the workspace you want to backup