🪄 Automatic backups for your Notion workspaces.

Overview

Notion Backups

Set up automated backups for your Notion workspaces that run on a time-basis and notify you by Slack, Discord, or email, so you never worry about losing your Notion data again.

Cover

Warning

⚠️ This tool uses the Notion unofficial API, which means it could break at any time. I'll try my best to keep it up to date, but you should be aware of this.

Pre-requisites

Getting started

  1. Log in to your Cloudflare workers dashboard, select the workers tab, and then create a new service. Step 1

  2. Give your script a name and then click the 'create service' button. Step 2

  3. Click on the Quick edit button and Copy-paste the Script code into the editor. Step 3

  4. Follow this guide to find your Notion token v2.

  5. Navigate to your Worker > Settings > Variables and add the following secrets:

    • TOKEN_V2 paste the value of your Notion token (required)
    • SLACK_WEBHOOK paste your Slack webhook URL (optional to receive notification via Slack)
    • DISCORD_WEBHOOK paste your Discord webhook URL (optional to receive notification via Discord) Step 4
  6. Returning to your worker editor page, you should now see the following page. Step 5

  7. To manually test the script, add a new variable with the name MODE and the value test to your environment variables. Step 6

  8. If you click the trigger export button again, you should receive a success message, and it will begin exporting your workspace. If you configured your Discord or Slack webhook url, you should receive a message in a few minutes, and you will also receive an email from Notion. Step 7

  9. in order for the script to execute on a time-based, you must create a cron job task for it,

    Navigate to Worker > Triggers > Cron Triggers and create a new cron trigger

    Examples:

    0 0 * * * will cause the script to execute once everyday.

    0 0 */10 * * will cause the script to execute once every ten days

    0 0 1 * * will cause the script to run on a monthly basis. Step 8

Change export format to Markdown

To change the backup's export format from html to markdown or PDF (enterprise plan), create a new environment variable called EXPORT_TYPE and set its value to html or markdown.

Guides

Running project locally

Requirements

  • Linux or WSL
  • Node

Steps to get server up and running

Install wrangler

npm i -g wrangler

Login With Wrangler to Cloudflare

wrangler login

Install packages

npm install

Run

wrangler dev

Support Me

Buy Me a Coffee at ko-fi.com

You might also like...

Waypoint - Automatic Table of Contents Generator for Obsidian.md

 Waypoint - Automatic Table of Contents Generator for Obsidian.md

Waypoint - Automatic Table of Contents Generator for Obsidian.md Do you use folders to categorize your notes and wish that Obsidian would show certain

Jan 2, 2023

Automatic Role Adder Is Usually Used In Coding Servers Which Give Access To Codes By Subbing To Their Channel So This Helps Them To Auto Role People :)

Automatic Role Adder Setup Guide Automatic Role Adder Is Usually Used In Coding Servers Which Give Access To Codes By Subbing To Their Channel So This

Dec 23, 2022

It is automatic mongodb data backup with cronjob.

It is automatic mongodb data backup with cronjob.

Do you need my help? Visit our Discord server. Installation npm i mongoose-backup --save yarn add mongoose-backup Guide const MongoBackuper = require(

Aug 8, 2022

chakra-radix-colors provides radix-ui color palettes, automatic dark mode, and acessible colors to chakra-ui applications

chakra-radix-colors chakra-radix-colors provides radix-ui color palettes, automatic dark mode, and acessible colors to chakra-ui applications. About C

Dec 30, 2022

automatic poits grabber for twitch, works with all supported langauges on twitch

automatic poits grabber for twitch, works with all supported langauges on twitch

Twitch Points Grabber It’s an extension for edge, is aviable in the microsoft Edge Add-ons. This extension will collect any channel points. Settings I

Nov 28, 2022

Texas DPS/DMV Automatic Scheduler

Texas DPS/DMV Automatic Scheduler

texas-dps-scheduler This app will find sameday or nearest 7 day appointments and schedulle it automatically! Why this project exist? It's so frustrati

Dec 30, 2022

Automatic Daily Login Rewards (Multiple Accounts); Export wish history

Automatic Daily Login Rewards (Multiple Accounts); Export wish history

Genshin Automation This tool will automatically collect Hoyolab daily login rewards. Using this tool you can: Automate your rewards on the Hoyolab web

Dec 21, 2022

A base project for Express with Typescript to create an API. Includes automatic input validation and Swagger UI generation.

A base project for Express with Typescript to create an API. Includes automatic input validation and Swagger UI generation.

(Typescript) Express API with input Validation and Swagger UI Thats a mouthful isn't it. Typescript: The language used, a superset of Javascript with

Oct 26, 2022

An Anime Game launcher for Linux with automatic patching fixing detection of Linux/Wine and telemetry disabling

An Anime Game launcher for Linux with automatic patching fixing detection of Linux/Wine and telemetry disabling

An Anime Game launcher for Linux with automatic patching fixing detection of Linux/Wine and telemetry disabling

Jan 4, 2023
Owner
NotionStuff
NotionStuff
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
🚀 Create dynamic and automatic changelogs for your project!

Versionator-js Create dynamic and automatic changelogs for your project!. Installation Use the package manager npm to install versionator-js. npm inst

Diego Sousa 6 Jan 6, 2023
🍺 Integrates Laravel Pint into your VSCode projects for automatic code formatting

Laravel Pint for VS Code This extension is NOT official from the Laravel team. Take a look into the official project. Integrates Laravel Pint into you

Open Southeners 34 Dec 8, 2022
🍎 A simple application which enables you to sync readings from your Withings scale to a Notion page.

weight-logger weight-logger is a simple application which enables you to sync readings from your Withings scale to a Notion page. Preview Installation

Juri Adams 2 Jan 14, 2022
Supercharge your All-in-One workspace with the Command Palette within Notion 🕹️

Notion Palette Supercharge your All-in-One workspace with the Command Palette within Notion ??️ Notion Palette is a free and open source extension, yo

Ruter 13 Nov 10, 2022
A free and open-source Automatic Account Creator (AAC) written in Javascript Stack;

A free and open-source Automatic Account Creator (AAC) written in Javascript Stack. ????‍?? Techs Front-end Vue.js Vuex-module-decorators Vuetify.js N

null 24 Dec 17, 2022
Automatic arxiv->ar5iv link replacement in Chrome.

Automatic arxiv->ar5iv link replacement in Chrome. This chrome extension will automatically replace arxiv.org/pdf/* links with ar5iv links for more we

yobi byte 44 Oct 29, 2022
An interface for an Automatic Ticket Vending Machine

ATVM-INTERFACE It is an interface for an Automatic Ticket Vending Machine. Try The Web Application! - Book your Ticket At Railway Stations, ATVMs (Aut

AMEY THAKUR 7 Apr 28, 2022