Discover Packages
github.com/5hay/notionbackup
command
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Apr 16, 2021
License: BSD-2-Clause
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
notionbackup
A small utility command line application that can recursively download Notion pages.
I needed something scriptable that could periodically download my whole Notion workspace for backup purposes.
How To Use
Set the following env variables
NOTION_TOKEN (the token_v2 cookie value, just google "notion token_v2")
NOTION_PAGEID (the id of the page you want to download recursively)
Optional NOTION_EXPORTDIR (the folder where the created .zip file should be placed in, defaults to the current directory )
Only specify the directory, the filename will be created for you
Optional NOTION_EXPORTTYPE ("html" or "markdown", defaults to markdown )
Now you can just run ./notionbackup.
Building
Clone this repository and then run go build -o notionbackup -ldflags="-s -w" app.go
Special Thanks
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.