notion-backup
Export Notion pages and subpages to a GitHub repo on a schedule (eg. to be used as a scheduled backup)
Read and write permissions
(this is to allow the Actions workflow to write your Notion content to your repo)NOTION_TOKEN
with the instructions in this article (original Medium article)index.ts
to add the Notion pages you want to export to the blocks
array at the top of the fileindex.ts
to specify a different export format, time zone or locale.github/workflows/export-notion-blocks-and-commit.yml
to specify a different schedule (default is once per day)Export Notion Blocks and Commit to Git
workflow has run, your backup will have been committed to your GitHub repo in the exports
folder! 🙌The GitHub Actions workflow is scheduled to run once a day to:
This script is heavily based on notion-guardian
, thanks to @richartkeil!