Sign inSign up

ivanik/notion-backup

By ivanik

Updated almost 6 years ago

Backup all notion data

Image
0

942

ivanik/notion-backup repository overview

Notion backup

I do not believe to clouds and prefer have local copy of all my data. But Notion is very useful tool with no open source alternatives. This script can backup all data using standard export feature in Notion.

This thing require NodeJS to run.

npm i
mkdir -p data
[email protected] PASSWORD=kek EXPORT_TYPE=both node notion

You can also use Docker image with this scrip and cron

docker run -e [email protected] -e PASSWORD=kek  ivanik/notion-backup

Docker compose file example

version: "3"
services:
  notion-backup:
    image: ivanik/notion-backup
    environment:
      EMAIL: [email protected]
      PASSWORD: n0t1onPa$$w0rd
      EXPORT_TYPE: both # markdown/html/both
      DELETE_OLD: 15 # delete backup after 15 days
    volumes:
      - ./data:/app/data # backup dir
      - ./crontab:/app/crontab # change cron settings (optional)

Environment Variables

  • Email - Notion email
  • password - Notion password
  • EXPORT_TYPE - export format markdown/html/pdf/both (pdf is only available with a personal plus plan or higher. both - backup in markdown and html)
  • DELETE_OLD - after how many days delete backups

Tag summary

Content type

Image

Digest

Size

39.2 MB

Last updated

almost 6 years ago

docker pull ivanik/notion-backup