Expire file-based hastes
Go to file
jolheiser 2ebc929c07
Add single-run mode
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2020-09-29 12:44:38 -05:00
.gitignore Initial Commit 2020-09-28 17:11:15 -05:00
atime_darwin.go Initial Commit 2020-09-28 17:11:15 -05:00
atime_linux.go Initial Commit 2020-09-28 17:11:15 -05:00
atime_windows.go Initial Commit 2020-09-28 17:11:15 -05:00
go.mod Initial Commit 2020-09-28 17:11:15 -05:00
go.sum Initial Commit 2020-09-28 17:11:15 -05:00
haste-expire.go Add single-run mode 2020-09-29 12:44:38 -05:00
Makefile Initial Commit 2020-09-28 17:11:15 -05:00
README.md Add single-run mode 2020-09-29 12:44:38 -05:00

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

  1. Download haste-expire from a release (or build it yourself from source).
  2. Move it anywhere you want.
  3. 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.