aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2020-09-11 15:23:54 -0400
committerRyan Kavanagh <rak@rak.ac>2020-09-11 15:23:54 -0400
commitaf17859a9009ff10ee503173491fdde1050efba7 (patch)
tree4ae280294e92cee8b75ddf1af1c11606d2e00bc9 /README
parentBetter cope with spaces in filenames (diff)
Added readme
Diffstat (limited to '')
-rw-r--r--README25
1 files changed, 25 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..0e3f5fa
--- /dev/null
+++ b/README
@@ -0,0 +1,25 @@
+I regularly amass a mass of junk files in my ~/public_html that I don't need.
+Most of these were uploaded to share something on IRC / email / IM, and aren't
+needed after some number of days.
+
+To address this, I wrote a small garbage collector in C. Its file retention
+period is shamelessly stolen from the kind folks at https://ttm.sh/ .
+
+SETUP:
+
+ Edit the paths in cleanup.c
+ compile cleanup.c
+ add a daily cronjob that calls cleanup
+
+USAGE:
+
+ cleanup
+ -v verbose
+ -n dry run
+ -x filename
+ exclude filename from cleanup
+
+TO UPLOAD:
+
+ I have a flaky shell script 'ptmp' that scps files to the right directory
+ with a temporary filename.