rain1 a298043769 Added support for spaces in filenames. | 9 lat temu | |
---|---|---|
bin | 9 lat temu | |
hbu | 9 lat temu | |
shell | 9 lat temu | |
.gitignore | 9 lat temu | |
LICENSE | 9 lat temu | |
README.md | 9 lat temu |
The hbu tool is designed to facilitate both:
The important concepts are
dump
this is just a flat folder with every file dumped inside it, files are renamed to their hash.tidy
this is a nice organized folder hierarchy with symlinks to the dump in it.<n>.scm
are stored inside config/ subdirectory of the dump. They are a history of the states of the tidy. Only the newest is looked at.This enables you to reproduce the tidy from the dump+config (if the tidy was deleted for example, or if you just copied the dump over to a separate computer).
There are two main commands:
hbu curate <dump-path> [tidy-path]
curate will initialize a dump with a new config file. if the config file already existed it will try to wipe the tidy and populate it with the setup that was stored last.
hbu store <dump-path>
store will search for any renamed/moved files, newly added and any deleted files. It will stash the new files and update its config about where everything is.
hbu gc
delete things from the dump which aren't referenced by the current config.
To install, let guile find the modules:
cd ~/Code/guile-modules/
ln -s /home/rain/Code/repos/hbu/hbu .
(note that it depends on guix for hashing)
and add the binary to PATH:
cd ~/bin
ln -s ~/Code/repos/hbu/bin/hbu .