Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akashrajpurohit/git-sync
๐ A simple tool to backup and sync your git repositories
https://github.com/akashrajpurohit/git-sync
backup-tool backups git git-backup go golang
Last synced: 3 days ago
JSON representation
๐ A simple tool to backup and sync your git repositories
- Host: GitHub
- URL: https://github.com/akashrajpurohit/git-sync
- Owner: AkashRajpurohit
- License: mit
- Created: 2024-06-17T11:53:51.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-12-16T06:26:13.000Z (9 days ago)
- Last Synced: 2024-12-18T19:40:24.223Z (6 days ago)
- Topics: backup-tool, backups, git, git-backup, go, golang
- Language: Go
- Homepage: https://github.com/AkashRajpurohit/git-sync/wiki
- Size: 439 KB
- Stars: 207
- Watchers: 2
- Forks: 8
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
๐ git-sync
A simple tool to backup and sync your git repositories
Bug report
ยท
Feature request
ยท
Read Docs
`git-sync` is a CLI tool designed to help you back up your Git repositories. This tool ensures you have a local copy of your repositories, safeguarding against potential issues such as account bans or data loss.
## ๐บ Demo
[![asciicast](./assets/asciinema.svg)](https://asciinema.org/a/674282)
## ๐ค Why `git-sync`?
Remember when `@defunkt` [GitHub account got banned?](https://twitter.com/defunkt/status/1754610843361362360) Well, he is the co-founder of GitHub so he did get his account un-banned pretty quickly but what if you are not that lucky?
Recently I have seen many developers [getting their GitHub account banned](https://www.reddit.com/r/github/search/?q=account+got+banned&sort=new) and losing access to their repositories. Some may be able to recover their account (but there is delay in that) and some may not be able to recover their account at all. What would you do if you lose access to your repositories? What if GitHub goes down? What if you accidentally delete your repositories? The answer is simple, you should have a backup of your repositories.
`git-sync` provides a straightforward way to back up all your repositories locally, ensuring you have access to your code whenever you need it. It does this by doing a bare clone of all your repositories in a specified directory so that you can recover your code in case of any unforeseen circumstances as well as the file size of your backups is minimal.
## โจ Features
- **Backup All Repositories:** Automatically clone or update all your GitHub repositories to a local directory.
- **Periodic Sync:** Keep your backups in sync with your remote repositories by running `git-sync` [periodically](https://github.com/AkashRajpurohit/git-sync/wiki/Setup-Periodic-Backups).
- **Multi Clone:** While git-sync was designed to work with bare clones to save space and speed up the syncing process, it also supports shallow, mirror and full clones too.
- **Concurrency:** Sync multiple repositories concurrently to reduce the time required for backup.
- **Configuration File:** Easily manage your settings through a YAML configuration file.
- **Custom Backup Directory:** Specify the directory where you want to store your repositories.
- **Multi Platform:** Currently this project supports backing up repositories from all major Git hosting services like GitHub, GitLab, Bitbucket, and Forgejo.## ๐ Getting Started
We have a thorough guide on how to set up and get started with `git-sync` in our [documentation](https://github.com/AkashRajpurohit/git-sync/wiki).
## ๐๐ป Support
If you found the project helpful, consider giving it a star โญ๏ธ. If you would like to support the project in other ways, you can [buy me a coffee](https://ko-fi.com/akashrajpurohit) or [sponsor me on GitHub](https://github.com/sponsors/AkashRajpurohit).
## ๐ Bugs or Requests
If you encounter any problems feel free to open an [issue](https://github.com/AkashRajpurohit/git-sync/issues/new?template=bug_report.yml). If you feel the project is missing a feature, please raise a [ticket](https://github.com/AkashRajpurohit/git-sync/issues/new?template=feature_request.yml) on GitHub and I'll look into it. Pull requests are also welcome.
## ๐ซฑ๐ปโ๐ซฒ๐ผ Contributors
Akash Rajpurohit
๐ป ๐ค ๐ ๐ ๐ฌ ๐ฆ
Joรฃo Vitor Bonadiman
๐ป ๐ค
Quentin Laffont
๐ป
Andre Compagno
๐ป
Mario Jason Braganza
๐
## ๐ Who am I?
[![Website Badge](https://img.shields.io/badge/-akashrajpurohit.com-3b5998?logo=google-chrome&logoColor=white)](https://akashrajpurohit.com/)
[![Linkedin Badge](https://img.shields.io/badge/-@AkashRajpurohit-0e76a8?logo=Linkedin&logoColor=white)](https://linkedin.com/in/AkashRajpurohit)
[![Twitter Badge](https://img.shields.io/twitter/follow/akashwhocodes)](https://twitter.com/AkashWhoCodes)
[![Mastodon Follow](https://img.shields.io/mastodon/follow/112372456922065040)](https://mastodon.social/@akashrajpurohit)