A small utility command line application that can recursively download Notion pages

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.

I have written a small blog post about this tool if you want to check it out: Automate your Notion backups

How To Use

Build it yourself or download a pre-built binary from the Releases page.

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

Owner
Shayan
Software Engineer in the medical industry πŸ’‰
Shayan
Similar Resources

πŸ”„ A command-line utility to export Protocol Buffers (proto) files to YAML, and JSON

proto2yaml πŸ”„ A command-line utility to export Protocol Buffers (proto) files to YAML, and JSON. Currently supported exports are for: Packages Service

Nov 10, 2022

Aces is a command line utility that lets you encode any file to a character set of your choice.

Aces Any Character Encoding Set Aces is a command line utility that lets you encode any file to a character set of your choice. For example, you could

Nov 28, 2022

A command line utility and library for generating professional looking invoices in Go.

A command line utility and library for generating professional looking invoices in Go.

ginvoicer A command line utility and library for generating professional looking invoices in Go. This is a very rough draft and there could still be b

Dec 15, 2022

πŸ“ˆ A command-line utility to interact with TradingView

tvctl πŸ“ˆ A command-line utility to interact with TradingView. This utility aims to improve usability of tedius and repetative tasks, such as watchlist

Oct 18, 2022

ls Xtended : A command line utility which lets you navigate through terminal like a pro 😎.

ls Xtended : A command line utility which lets you navigate through terminal like a pro 😎.

Navigate through terminal like a pro 😎 πŸ’» Demo β€’ βš—οΈ Installation β€’ 🐜 Contribution β€’ ❗ Known Issues ❓ Why? It's a pain to cd and ls multiple times to

Dec 14, 2022

Portal is a quick and easy command-line file transfer utility from any computer to another πŸ–₯️ 🌌 πŸ’»

Portal is a quick and easy command-line file transfer utility from any computer to another πŸ–₯️ 🌌 πŸ’»

Portal is a quick and easy command-line file transfer utility from any computer to another πŸ–₯️ 🌌 πŸ’»

Dec 27, 2022

A command line utility for labeling GitHub issues and pull requests

A command line utility for labeling GitHub issues and pull requests

Jan 8, 2023

Command-line utility to grab Github gists from your own account.

Command-line utility to grab Github gists from your own account.

gistfetch Command-line utility to grab Github gists from your own account. How do I use this? Add an API token with permissions to read Gists Fetch th

Dec 14, 2021

Go cmd utility that prints its command line arguments using strings.Join

Results This is an exercise of the book The Go Programming Language, by Alan A. A. Donovan and Brian Kernighan. Comparison between different versions

Dec 18, 2021
Comments
  • API Export Error

    API Export Error

    This was working brilliantly for me for a while, and then, after I'm presuming a change in Notion's API, I've started getting the error from the log below. Would be fantastic if you could take a look. Thanks in advance!

    2022/04/27 20:12:16 notionbackup (v1.0.0) | Starting the export process ...
    2022/04/27 20:17:56 http.Post('https://www.notion.so/api/v3/getTasks') returned non-200 status code of 502
    
A command line tool that builds and (re)starts your web application everytime you save a Go or template fileA command line tool that builds and (re)starts your web application everytime you save a Go or template file

# Fresh Fresh is a command line tool that builds and (re)starts your web application everytime you save a Go or template file. If the web framework yo

Nov 22, 2021
πŸ“· Command-line utility to download all photos from Instagram
πŸ“· Command-line utility to download all photos from Instagram

Instagram Downloader This is a simple command-line tool, written in Go, to download all images from an Instagram account. Getting Started Install inst

Sep 9, 2022
You-Get is a tiny command-line utility to download media contents (videos, audios, images) from the Web,
You-Get is a tiny command-line utility to download media contents (videos, audios, images) from the Web,

You-Get NOTICE: Read this if you are looking for the conventional "Issues" tab. You-Get is a tiny command-line utility to download media contents (vid

Jan 2, 2023
Command-line tool to organize large directories of media files recursively by date, detecting duplicates.

go-media-organizer Command-line tool written in Go to organise all media files in a directory recursively by date, detecting duplicates.

Jan 6, 2022
πŸ“₯ Command-line tool to download videos from hanime.tv

hanime Command-line tool to download videos from hanime.tv Requirements Installation Install via go get Install from source Install from release Usage

Dec 18, 2022
Command-line program to download videos from YouTube.com and other video sites

youtube-dl - download videos from youtube.com or other video platforms INSTALLATION DESCRIPTION OPTIONS CONFIGURATION OUTPUT TEMPLATE FORMAT SELECTION

Jan 9, 2023
An open-source GitLab command line tool bringing GitLab's cool features to your command line
An open-source GitLab command line tool bringing GitLab's cool features to your command line

GLab is an open source GitLab CLI tool bringing GitLab to your terminal next to where you are already working with git and your code without switching

Dec 30, 2022
A command line tool to prompt for a value to be included in another command line.

readval is a command line tool which is designed for one specific purposeβ€”to prompt for a value to be included in another command line. readval prints

Dec 22, 2021
A command line utility for generating language-specific project structure.
A command line utility for generating language-specific project structure.

hydra hydra is a command line utility for generating language-specific project structures. ⏬ ✨ Features Build project templates with just one command

Oct 8, 2021
Hosty is a command-line utility that allows for fast inspection and editing of /etc/hosts-like files

Hosty Description Hosty is a command-line utility that allows for fast inspection and editing of /etc/hosts-like files. It is written in golang and us

Sep 3, 2021