Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.
/ backpack Public archive

Simple GIT based backup tool written in D

License

Notifications You must be signed in to change notification settings

al1-ce/backpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

backpack

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

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

About

Simple GIT based backup tool written in D

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages