Backup Git Repositories on Local Machine
sh -c "$(curl -fsSL https://raw.githubusercontent.com/KayvanMazaheri/gbu/master/install.sh)"
Your data is valuable. It will cost you time and effort re-create it, and that costs money or at least personal grief and tears.
-- Linux System Administrators Guide, Chapter 12. Backups
GBU uses git bundle
under the hood to backup a git repository into a single file.
It finds all git respositories in the current directory, creates backups and saves them into new directory prefixed with gbu
(e.g. gbu.2017-08-29T10:38:34
).
Backup all git repositories in the current directory with a single command
gbu