-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
FlareXes edited this page Jun 17, 2026
·
1 revision
This page covers installing GitBack and verifying that your environment is ready for backups.
GitBack relies on standard system tools.
Required:
- Git
- tar
- zstd
Verify that all required tools are available:
gitback doctorExample:
[OK] config.yaml
[OK] github.token
[OK] git
[OK] tar
[OK] zstd
[OK] mirror directory
[OK] snapshot directory
[OK] state directory
[OK] log file writable
[OK] github authentication
Install the latest release:
go install github.com/flarexes/gitback/cmd/gitback@latestVerify installation:
gitback --helpClone the repository:
git clone https://github.com/FlareXes/gitback.gitEnter the project directory:
cd gitbackBuild:
go build -o gitback ./cmd/gitbackOptional:
sudo mv gitback /usr/local/bin/Verify installation:
gitback --helpGitBack requires a GitHub Personal Access Token to discover repositories and Gists.
Both token types are supported:
- Classic Personal Access Token (PAT)
- Fine-Grained Personal Access Token (FGPAT)
Required scope:
repo
Repository access:
All repositories
Permissions:
Contents: Read-only
Metadata: Read-only
Create the initial configuration and validate authentication:
gitback initThe initialization process:
- Creates configuration files
- Stores the GitHub token
- Verifies GitHub API access
- Creates required directories
Run:
gitback doctorbefore your first backup.
Continue with:
This guide walks through creating your first backup and snapshot.