backpack 1.1.1
GIT-based backup tool
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
backpack
Simple GIT based backup tool written in D
Installation
Source
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
Binary
- Go to releases and download binary.
- Copy downloaded binary
backpack
to somewhere in your path, for example~/.local/bin/
AUR
- Install with any aur helper of your choice. Assuming you have
yay
install withyay -Syu backpack
dub
- Fetch package with
dub fetch backpack
- Build and install into
/usr/bin
withdub build backpack -b release -c install
Usage
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
- Registered by Alisa Lain
- 1.1.1 released 6 months ago
- al1-ce/backpack
- MIT
- Copyright © 2023, Alisa Lain
- Authors:
- Dependencies:
- sily
- Versions:
-
1.1.1 2023-Apr-21 1.0.1 2023-Apr-21 1.0.0 2023-Apr-21 ~master 2023-Apr-21 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
1 downloads this month
-
6 downloads total
-
- Score:
- 0.0
- Short URL:
- backpack.dub.pm