Skip to content

Configuration

Leslie Leung edited this page Nov 13, 2023 · 2 revisions

Repository

repository:
  - name: reaper # the name of this task
    url: github.com/leslieleung/reaper # the url of the repository
    cron: "0 * * * *" # only works in daemon mode
    storage: # storages defined in the storage part of the config
      - localFile
      - backblaze
    useCache: True # if enabled, REAPER would keep the cloned repository and use git pull on next run
  - name: me
    orgName: LeslieLeung # the name of the user or the organization
    type: user # repo, user, org (default: repo)
    storage:
      - localFile

If you wish to backup all of the repos of a user or an organization, you can simple add an item with either type user or org, and specify the name of the desired user/org. Please note that PAT(Personal Access Token) might be needed, see below.

Storage

storage:
  - name: localFile
    type: file
    path: ./repo
  - name: backblaze
    type: s3
    endpoint: s3.us-west-000.backblazeb2.com
    region: us-west-000
    bucket: your-bucket-name
    accessKeyID: your-access-key-id
    secretAccessKey: your-secret-access-key

GitHub Token

You need a PAT(Personal Access Token) to access some of the repos. You can generate one HERE, make sure it has repo READ rights.

githubToken: xxx
Clone this wiki locally