Simple GIT based backup tool written in D
Archived since I do not intend to work on it anymore (at least for now). There are better solutions like YADM
Compilation of this repository requires dlang.
- Clone this repo and build it with
dub build -b release
- Copy created binary
./bin/backpack
to somewhere in your path, for example~/.local/bin/
- Or build project with
dub build backpack -b release -c install
to automatically move compiled binary into/usr/bin
- Go to releases and download binary.
- Copy downloaded binary
backpack
to somewhere in your path, for example~/.local/bin/
- Install with any aur helper of your choice. Assuming you have
yay
install withyay -Syu backpack
- Fetch package with
dub fetch backpack
- Build and install into
/usr/bin
withdub build backpack -b release -c install
Backpack keeps configuration in ~/.config/backpack/backup_list
in format absolutePath:originName:branchName
.
- To add new path to list use
--add
,-a
flag. You also can set custom origin with--origin
,-o
and custom branch with--branch
,-B
, otherwise origin oforigin
and branchmaster
will be assumed. - To remove existing path use
--remove
,-r
flag. - To start backup use
--backup
,-b
flag.
Example:
Add current folder to paths:
backpack -a .
Add folder to path with custom branch and origin:
backpack -B main -o customOriginAlias -a projectFolder
Remove current folder from paths:
backpack -r .
Backup all:
backpack -b