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

aur dub git license aur votes dub rating

Installation

Source

Compilation of this repository requires dlang.

  1. Clone this repo and build it with dub build -b release
  2. Copy created binary ./bin/backpack to somewhere in your path, for example ~/.local/bin/
  3. Or build project with dub build backpack -b release -c install to automatically move compiled binary into /usr/bin

Binary

  1. Go to releases and download binary.
  2. Copy downloaded binary backpack to somewhere in your path, for example ~/.local/bin/

AUR

  1. Install with any aur helper of your choice. Assuming you have yay install with yay -Syu backpack

dub

  1. Fetch package with dub fetch backpack
  2. Build and install into /usr/bin with dub 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 of origin and branch master 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
Authors:
  • Alisa Lain
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
Show all 4 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 2 downloads this month

  • 8 downloads total

Score:
0.0
Short URL:
backpack.dub.pm