├── .github └── workflows │ └── run_backup.yml └── LICENSE /.github/workflows/run_backup.yml: -------------------------------------------------------------------------------- 1 | name: "Roam Research backup" 2 | 3 | on: 4 | push: 5 | branches: 6 | - master 7 | schedule: 8 | - cron: "*/10 * * * *" #doesn't actually :( Am I getting throttled? test 9 | 10 | jobs: 11 | backup: 12 | runs-on: ubuntu-latest 13 | name: Backup 14 | timeout-minutes: 15 15 | steps: 16 | - name: Checkout notes repo 17 | uses: actions/checkout@v2 18 | with: 19 | repository: ${{ secrets.targetRepo }} 20 | token: ${{ secrets.roamPat }} 21 | - name: Set up Python 3.8 22 | uses: actions/setup-python@v1 23 | with: 24 | python-version: 3.8 25 | 26 | - name: Setup dependencies 27 | run: | 28 | pip install git+https://github.com/Stvad/roam-to-git.git@edn 29 | - name: Run backup 30 | run: | 31 | roam-to-git . --formats json edn 32 | env: 33 | ROAMRESEARCH_USER: ${{ secrets.roamEmail }} 34 | ROAMRESEARCH_PASSWORD: ${{ secrets.roamPassword }} 35 | ROAMRESEARCH_DATABASE: ${{ secrets.roamDatabase }} 36 | 37 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Vladyslav Sitalo 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | --------------------------------------------------------------------------------