Easily track and backup configuration files.
Add files
$ vault add ~/.config/Code/User/settings.json # vscode settings
$ vault add /etc/fstab # mountsList files
$ vault ls
/etc/fstab
/home/simon/.config/Code/User/settings.jsonBackup files
$ vault backup laptop-backup.tar.gzRestore files
$ vault restore laptop-backup.tar.gzUsage
Usage: vault <command>
Commands:
add <path> [<path> ...] Add files to the index.
rm <path> [<path> ...] Remove files from the index.
ls List files in the index.
backup <archive> Backup files to an archive.
restore <archive> Restores files from an archive.
inspect <archive> List files, owner and mode information for an archive.
extract <archive> <dir> Extract the contents of the archive to a directory.
help [<command>] Display help about a command.
Options:
--user=USERNAME Use this user's vault
~/.config/dconf/user
~/.local/share/gnome-shell/extensions
/etc/apt/sources.list
/etc/apt/sources.list.d
~/.config/Code/User/settings.json
sudo wget https://raw.githubusercontent.com/sbstp/vault/master/vault -O /usr/local/bin/vault && sudo chmod +x /usr/local/bin/vault