Skip to content

Gickup

Getting started

Gickup is a tool that allows you to clone/mirror repositories from one hoster to another. This is useful if you want to have a backup of your repositories on another hoster or to a local server.

References



  1. Download tarball

    Terminal window
    wget https://github.com/stefanprodan/gickup/releases/download/v0.10.39/gickup_0.10.39_linux_amd64.tar.gz
  2. Verify checksum

    Terminal window
    echo "c3d3e647189c4379d8d70b9223bd4fe5eb293b289ece5931ff2e10064b063a67 gickup_0.10.39_linux_amd64.tar.gz" | sha256sum -c -
  3. Extract and move

    Terminal window
    tar -xzf gickup_0.10.39_linux_amd64.tar.gz && sudo mv gickup /usr/local/bin/gickup
  4. Make executeable

    Terminal window
    sudo chmod +x /usr/local/bin/gickup
  5. Create backup/config directory

    Terminal window
    mkdir -p ~/.config/gickup
  6. Create token(s)

    GitHub token

    Requires these permissions:

    • all:repo - Full control of public and private repositories.
    • read:gist - Read user gists.
    • read:org - (Optional) Read-only access to organization membership and repos.

  7. Create config

    Terminal window
    nano ~/.config/gickup/local.config.yaml
    local.config.yaml
    source:
    github:
    - token: "YOUR_GITHUB_TOKEN"
    wiki: false
    issues: false
    starred: false
    gists: true
    destination:
    local:
    - path: "/home/{USERNAME_VAR}/Documents/gh-backup"
    structured: true
    bare: true
    mirror: true

  8. Run

    Terminal window
    gickup ~/.config/gickup/local.config.yaml