Simple CLI utility for creating numbered backups of files and directories with optional TAR archive support
bkp is a Python-based command-line backup utility that creates numbered copies of files and directories. When backing up a file like foo/bar/baz, it generates sequential backups named foo/bar/baz.b01, foo/bar/baz.b02, and so on, automatically incrementing the number to avoid overwriting existing backups.
The tool supports two backup modes: simple file/directory copying and TAR archive creation using the -a flag. When creating TAR archives, bkp can append metadata including author information, creation timestamps, and custom commit messages specified with the -m flag. Users can later retrieve this metadata using the -i flag to inspect backup details.
Files can be restored to their original locations using the -r flag, which overwrites the original file or directory. The utility processes multiple files in a single command and always creates backup files in the same directory as the source files, regardless of the current working directory. bkp requires Python 3.6+ and has been tested primarily on Linux systems.
# via pip
pip install bkp
