YAML config based backup utility. Easy to use yet flexible. With a primary focus on dotfile backup & setup, but not limited to dotfiles.
Project description
dotbackup
Usually people maintain backup and setup scripts along with their dotfiles. But
these scripts always contain a lot of repeat codes, and writing them is not fun!
dotbackup
and dotsetup
are here to help.
With these two tools, you only need to write a simple configuration and they will know how to back up and set up your dotfiles. You can read dotbackup(1) and dotsetup(1) for details.
Highlights
- Simple configuration.
- Custom hooks.
- Detailed logs.
Installation
You can install from one of these package managers:
Installing from a package manager gives you the two commands - dotbackup
and
dotsetup
, and the manpages. But you can also download this single script:
dotbackup.py. In fact, dotbackup
and dotsetup
are just
shortcut commands of dotbackup.py
, which means that dotbackup
is equivalent
to dotbackup.py backup
and dotsetup
is equivalent to dotbackup.py setup
.
Quick Start
Write a simple configuration and place it to ~/.config/dotbackup/dotbackup.yml
:
backup_dir: ~/backup
apps:
vim:
files: [~/.vimrc]
nvim:
files:
- ~/.config/nvim/init.lua
- ~/.config/nvim/lua
Do backup:
$ dotbackup
INFO: doing vim backup...
INFO: copying ~/.vimrc to /home/user/backup/.vimrc...
INFO: doing nvim backup...
INFO: copying ~/.config/nvim/init.lua to /home/user/backup/.config/nvim/init.lua...
INFO: copying ~/.config/nvim/lua to /home/user/backup/.config/nvim/lua...
Do setup:
$ dotsetup
INFO: doing vim setup...
INFO: copying /home/user/backup/.vimrc to /home/user/.vimrc...
INFO: doing nvim setup...
INFO: copying /home/user/backup/.config/nvim/init.lua to /home/user/.config/nvim/init.lua...
INFO: copying /home/user/backup/.config/nvim/lua to /home/user/.config/nvim/lua...
Documentation
For more information, please read dotbackup(1) and dotsetup(1).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for dotbackup-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b71dcc4830417ee9cae3a361838ca0d3617564d4c380d0be779935b701a99c59 |
|
MD5 | 672a649070544cdb1fc2f5d62c2766dd |
|
BLAKE2b-256 | 09a4a10d5ff32c9ca460f082062ac41129163759e577988e4dfd2b5dd8af6f32 |