Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sys-tools

A collection of system utility tools I wrote for myself. shared so others can use or modify them as needed.

Tools

snapper-cleaner

Bulk-deletes snapper snapshots (except the current 0 snapshot), with a safety prompt and chunked deletion.Requires root and the snapper CLI.

sudo ./bin/snapper-cleaner/snapper-cleaner

Building

The Makefile handles builds. Each tool gets its own build target, And the build target (run by plain make) grows as new tools are added.

make                         # builds everything (all tools)
make build-snapper-cleaner   # build just snapper-cleaner

If another tool is added, it gets its own build-<tool> target and is added to build's dependencies. Binaries go in bin/.

Installation

You can install the compiled binaries to your system (defaults to /usr/local/bin). Just like building, you can install or uninstall everything at once, or target specific tools.

sudo make install # install everything
sudo make install-snapper-cleaner # install just snapper-cleaner

sudo make uninstall # uninstall everything
sudo make uninstall-snapper-cleaner # uninstall just snapper-cleaner

You can also customize the installation path using the PREFIX or DESTDIR variables, which is useful for custom setups or package managers:

sudo make PREFIX=/usr install # installs to /usr/bin instead of /usr/local/bin

License

MIT

About

A collection of system utility tools I wrote for myself, shared so others can use or modify them as needed.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages