{"id":13658013,"url":"https://github.com/kaedea/notion-up","last_synced_at":"2025-08-16T16:45:57.381Z","repository":{"id":44338807,"uuid":"420994505","full_name":"kaedea/notion-up","owner":"kaedea","description":"Use NotionUp (Notion Backup) + CircleCI to  backup your notion data nightly.｜自动备份 Notion 数据。｜Notion データのバックアップを自動化する","archived":false,"fork":false,"pushed_at":"2023-01-16T19:10:24.000Z","size":588,"stargazers_count":125,"open_issues_count":7,"forks_count":26,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T16:48:57.767Z","etag":null,"topics":["devops","notion","notion-backup"],"latest_commit_sha":null,"homepage":"https://www.kaedea.com/2021/10/01/devops/notion-backup/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaedea.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-25T11:25:24.000Z","updated_at":"2025-03-30T11:50:13.000Z","dependencies_parsed_at":"2023-02-10T05:45:16.939Z","dependency_job_id":null,"html_url":"https://github.com/kaedea/notion-up","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/kaedea/notion-up","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaedea%2Fnotion-up","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaedea%2Fnotion-up/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaedea%2Fnotion-up/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaedea%2Fnotion-up/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaedea","download_url":"https://codeload.github.com/kaedea/notion-up/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaedea%2Fnotion-up/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270741931,"owners_count":24637491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devops","notion","notion-backup"],"created_at":"2024-08-02T05:00:55.092Z","updated_at":"2025-08-16T16:45:56.582Z","avatar_url":"https://github.com/kaedea.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# notion-up\n[中文说明](https://www.kaedea.com/2021/10/01/devops/notion-backup/)\n\n![](https://www.kaedea.com/assets/8f134329_a1a6_49b2_97a4_c07ea4c3e733_untitled.png)\n\nNotionUp (Notion Backup) is a python repo helping you to backup notion data automatically.\n\n## **Getting Started**\n\n### **Prepare**\n\nTo get started with NotionUp, you should:\n\n1. Prepare your Notion's username(email) and password, or just find your `notion_token_v2`.\n2. Run `notion-up/main.py` with your configs.\n\nCheck [here](https://github.com/kaedea/notion-down/blob/master/dist/parse_readme/notiondown_gettokenv2.md) to find out your `notion_token_v2` if need.\n\n### **Run CLI**\n\nBasically just run `notion-down/main.py` :\n\n```bash\n# Run with cli cmd\nPYTHONPATH=./ python main.py\n    --token_v2 \u003ctoken_v2\u003e\n    --username \u003cusername\u003e  # Only when token_v2 is not presented\n    --password \u003cpassword\u003e  # Only when token_v2 is not presented\n\n# or\nPYTHONPATH=./ python main.py \\\n    --config_file '.config_file.json'\n\n# Your can configure notion-down args by cli-args, config_file or SysEnv parameters\n# Priority: cli args \u003e config_file \u003e SysEnv parameters \u003e NotionDown default\n```\n\n### Archive to GitHub Release\n\nCheck the following workflows and jobs in `.circleci/config.yml` to get how it works.\n\n```yaml\nworkflows:\n  backup-notion:\n    jobs:\n      - export-workspace\n      - publish-github-release:\n          requires:\n            - export-workspace\n```\n\nAs examples, check the output at [Release](https://github.com/kaedea/notion-up/releases) and [notion-exported](https://github.com/kaedea/notion-up/tree/master/dist).\n\n### Backup nightly\n\nCheck the following crontab workflows.\n\n```yaml\nworkflows:\n  backup-notion-nightly:\n    triggers:\n      - schedule:\n          cron: \"0 * * * *\"  # every hour\n          filters:\n            branches:\n              only:\n                - master\n    jobs:\n      - export-workspace\n      - publish-github-release:\n          requires:\n            - export-workspace\n```\n\n## **Showcase**\n\nWork with CircleCI, see `.circleci/config.yml`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaedea%2Fnotion-up","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaedea%2Fnotion-up","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaedea%2Fnotion-up/lists"}