From 336488785c5f9f901f56f181023d5f3c95e2ab74 Mon Sep 17 00:00:00 2001 From: ub1x Date: Sun, 31 Oct 2021 00:12:11 +0200 Subject: [PATCH] Initial version of a small script to generate an duc index of the whole system ignoring nfs and davfs filesystems --- duc-index.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 duc-index.sh diff --git a/duc-index.sh b/duc-index.sh new file mode 100755 index 0000000..0f4c31e --- /dev/null +++ b/duc-index.sh @@ -0,0 +1,6 @@ +#!/bin/bash +LogDatei="/var/log/duc-index.log" + +echo -e "*** Erstelle duc index von / $(date +%F_%T)" &>> ${LogDatei} +duc index --fs-exclude="nfs,davfs" / &>> ${LogDatei} +echo -e "*** Vertich :-) mit duc return code <$?> um $(date +%F_%T)" &>> ${LogDatei}