Branches and tags first
Safe mode pushes branches and tags without mirroring every ref.
git-ark backs up branches, tags, and optional bundles to multiple remotes. It keeps the everyday path conservative, then opens up mirror mode, pruning, and provider-aware diagnostics only when you ask for them.
Safe mode pushes branches and tags without mirroring every ref.
Every run is recorded so status can show the latest backup and a short history.
doctor checks connectivity and points out obvious provider mismatches.
To get started using git-ark, these are the commands you need to know:
git-ark init writes a commented git-ark.yml you can edit right away.
git-ark validate checks the config, the repo path, and the most obvious safety issues.
git-ark backup --dry-run shows the plan without mutating remotes or creating bundles.
git-ark backup executes the chosen mode and writes metadata when enabled.
Small surface area, easy to remember.
The ones you will probably touch most often.
--dry-runPreview the plan.--repoPoint at another repository path.--configLoad a specific config file.--jsonEmit machine-friendly output where supported.--yesSkip mirror confirmation in non-interactive shells.--prunePrune remote refs in safe mode.The config is intentionally plain YAML so humans can skim it quickly.
version: 1
mode: "safe"
remotes:
github:
url: git@github.com:example/example-backup.git
provider: github
options:
push_branches: true
push_tags: true
prune: false
write_metadata: true
metadata:
path: .git/git-ark-last-backup.json