|
||
---|---|---|
.gitignore | ||
atime_darwin.go | ||
atime_linux.go | ||
atime_windows.go | ||
go.mod | ||
go.sum | ||
haste-expire.go | ||
Makefile | ||
README.md |
haste-expire
A utility to remove old Hastebin files based on an expire time and last read date of the file.
haste-expire performs destructive operations and should therefore be ran as its own user!
Instructions
- Download haste-expire from a release (or build it yourself from source).
- Move it anywhere you want.
- Run it with the appropriate flags.
Flags
--interval
- A duration between checks, similar to a cron.
--single
- Run the scan once and stop. Useful for cron or systemd timers.
--expire
- How long before removing a file that hasn't been accessed in a duration.
--data-path
- The path to your haste files.