Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.
/ pinbak Public archive

Small backup manager that works with git

License

Notifications You must be signed in to change notification settings

pngouin/pinbak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pinbak 🐧

Pinbak is a small backup manager. It will save and restore file or directory with git with and works with any git repository manager.

Getting started

Default utilisation

$ pinbak init
$ pinbak add repo configuration [email protected]:Pinbak/configuration-backup.git
$ pinbak add repo ssh [email protected]:Pinbak/ssh-backup.git
$ pinbak add configuration ~/.bashrc ~/.gitconfig ~/.config/Code/User/settings.json
$ pinbak add ssh ~/.ssh/id_rsa.pub
$ pinbak list

To restore all the items from a fresh install

$ pinbak init
$ pinbak add repository configuration [email protected]:Pinbak/configuration-backup.git
$ pinbak restore all

To update all the backed items

$ pinbak update

To remove an item

$ pinbak list
configuration : [email protected]:Pinbak/configuration.git
    -  bm1nrku1nn09qvbipro0  :  {HOME}/.gitconfig
$ pinbak remove bm1nrku1nn09qvbipro0
Done.

Usage

Pinbak is a simple backup manager that store files in a git repository.

Usage:
  pinbak [flags]
  pinbak [command]

Available Commands:
  add         Add a file to backup.
  help        Help about any command
  init        Init pinbak.
  list        List all items in a repository.
  remove      Remove items or repository from the backup.
  restore     Restore all items in repository.
  update      Update all items in all repositories.

Flags:
  -h, --help   help for pinbak

Use "pinbak [command] --help" for more information about a command.

Disclamer

  • Pinbak will write all the directory with the UNIX decimal write drwxr-xr-x and file with -rw-r--r--.
  • All directories and files will be writed with as the current user.
  • When Pinbak detect an home path it will be restore in the home directory of the current user.