Skip to content

Samuel-Martineau/Notion-Auto-Backup

Repository files navigation

Notion-Auto-Backup

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/

How to use?

Docker-Compose

  1. Copy the example docker-compose.yml
  2. Create a .env file 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%

Docker Swarm

  1. Copy the example swarm.docker-compose.yml
  2. Create a file named notion_token for your token_v2 cookie from notion.so and a file named notion_space_id for the id of the workspace you want to backup

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors