Notion Backup
Installation
npm install -g npbup
# or
yarn global add nobup
Usage
$ nobup --help
Usage: nobup [options] [command]
Backup Notion to git
Options:
-V, --version Output the version number
-t --token <token> Specify the Notion token
-h, --help Display help for command
Commands:
login [email] [password] Log into your Notion account
logout Log out of your Notion account
list List workspaces
backup [workspace] [repo] Back up a workspace content to a git repository
export [workspace] Export a workspace content
push [file] [repo] Push an exported content to a git repository
help [command] Display help for command
Examples
Backup with your email address and password
$ nobup login
? Enter your email address somebody@example.com
? Enter your password [hidden]
$ nobup backup
? Enter the target workspace name Somebody's Workspace
? Enter the repository URL to push https://github.com/somebody/notion-backup.git
✔ Search workspace
✔ Export workspace
✔ Download ZIP file
✔ Push to repo
Completed.
$ nobup logout
Backup with token
$ nobup backup \
"Somebody's Workspace" \
https://github.com/somebody/notion-backup.git \
--token 833e76d6d72096fbe46ef195350381db493f9f8d...
✔ Search workspace
✔ Export workspace
✔ Download ZIP file
✔ Push to repo
Completed.
License
MIT