https://github.com/linqlover/git-backup
Minimalistic fire-and-forget backup tool that uses a git remote as a backup server. Every backup creates (and pushes) a new commit on a separate branch without altering the local ancestry or working copy.
https://github.com/linqlover/git-backup
backup git vcs
Last synced: 2 months ago
JSON representation
Minimalistic fire-and-forget backup tool that uses a git remote as a backup server. Every backup creates (and pushes) a new commit on a separate branch without altering the local ancestry or working copy.
- Host: GitHub
- URL: https://github.com/linqlover/git-backup
- Owner: LinqLover
- Created: 2025-05-24T16:15:50.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-24T16:23:36.000Z (about 1 year ago)
- Last Synced: 2025-05-24T17:29:01.419Z (about 1 year ago)
- Topics: backup, git, vcs
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-backup
Minimalistic fire-and-forget backup tool that uses a git remote as a backup server.
Every backup creates (and pushes) a new commit on a separate branch without altering the local ancestry or working copy.
## Example
```bash
$ git-backup --push
Created backup commit 2e84d986188126e08f60896684cf19ae7bede88c on branch 'backup/main'.
Pushing 'backup/main' to remote...
Enumerating objects: 6, done.
Counting objects: 100% (6/6), done.
Delta compression using up to 22 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 528 bytes | 528.00 KiB/s, done.
Total 4 (delta 1), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To github.com:LinqLover/git-backup.git
* [new branch] backup/main -> christoph.thiede/backup/main
```
## Synopsis
```
Usage: git-backup.sh [--push] [BACKUP_BRANCH]
Backs up *all* uncommitted changes into a new commit on a dedicated backup
branch without altering your real index or working directory.
If BACKUP_BRANCH is not specified, defaults to backup/.
Options:
--push Push the backup branch immediately after creating the commit.
-h, --help Show this help message.
Examples:
git-backup.sh
git-backup.sh my-backup-branch
git-backup.sh --push
git-backup.sh --push my-backup-branch
```