
Requires Python3.6 or higher, presumably. This will be easier when I get around to proper packaging. For general use, I advise installing the master branch. NOTE: This repository's default branch has been changed to unstable for development. bakfile using exec (alias -in)ĭiff `bak where my_file.json` my_file.json bakfile in $PAGER (configurable)īak open -using exec my_file View a. bakfiles, or just my_file'sīak open my_file View a. bakfile using diff (configurable)īak list/ bak list my_file - List all. Additional commands and flagsīak down -keep my_file - Restores from. This may create parallel config and bakfiles in root's XDG directories. NOTE: bak down will fall back on sudo cp if necessary. At the moment, all you've got to go by are timestamps when it asks you to pick a.

In other words, you can bak my_thing.txt as many times as you want, until you're finished working, if you'd prefer to keep multiples instead of using bak up. bakfile with you.Īll of bak's commands will disambiguate between multiple copies of the same file. bakfile.īak down my_file - Deletes my_file and restores it from my_file.bakīak off my_file - Deletes my_file.bak, confirming by default ( bak off -q to suppress)ĭon't worry, they're easy to remember after a minute:īak down: I've screwed up, undo the damage.īak off: I'm done working. Using bak, you'll be able to manage your bakfiles with four simple commands:īak my_file - Create a bakfile in a configured location (default: XDG_DATA_HOME/bak/bakfiles, or XDG's default location)īak up my_file - Overwrite current my_file.bak, rather than creating a second. The problem, of course, is remembering to delete that file when you're finished.īak's goal is simply to obviate this process. Config files, dotfiles, "I'm only pretty sure I know what I'm doing" files, before you break them, you do this:

bak files - without clutter.Īs residents of the terminal, we all make a lot of on-the-fly, in-place, single-file backups. I apologize for any inconvenience this period of inactivity, and the following period of "hidden" development, might have caused anyone.īak is a command-line utility for creating and restoring backup copies of single files.

When I got back around to stale PRs and feature requests, I made the most common of unpleasant discoveries among software devs: the first version simply won't do.Īs such, bak is being rewritten, with early versions tentatively scheduled for "release" in late February or early March of 2023. Bak has been abandonware for a little while now.
