Import existing script generate-ftpindex.sh
authorunknown <sysadmin@gnu.org>
Wed, 5 Oct 2022 02:15:30 +0000 (21:15 -0500)
committerJacob Bachmeyer <jcb@gnu.org>
Wed, 5 Oct 2022 02:16:04 +0000 (21:16 -0500)
generate-ftpindex.sh [new file with mode: 0644]

diff --git a/generate-ftpindex.sh b/generate-ftpindex.sh
new file mode 100644 (file)
index 0000000..4800771
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+ls -lrRt /home/ftp | gzip -9 -c > /home/ftp/ls-lrRt.txt.gz
+cd /home/ftp
+find . | gzip -9 -c > /home/ftp/find.txt.gz
+tree -aJsD --timefmt %s | gzip -9 -c > /home/ftp/tree.json.gz