From c8fe7ba5835050ed9cb9b33f6f5ebd0e44c3dcb0 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Fri, 11 Nov 2022 00:50:40 -0600 Subject: [PATCH] Include .git directories --- impfilesbk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/impfilesbk b/impfilesbk index 502d1bd..bd0478a 100644 --- a/impfilesbk +++ b/impfilesbk @@ -15,7 +15,7 @@ HMDIR="/home/sintan" BKDIR="/mnt/storage/sintan" echo `date` "| Backing up Documents..." | tee -a "$HMDIR/TempStorage/impfilesbk.log" -rsync -aAXH --delete --stats -f '- *.git/' -f '- *Rust/*/target/' "$HMDIR/Documents/" "$BKDIR/Documents/" | tee -a "$HMDIR/TempStorage/impfilesbk.log" +rsync -aAXH --delete --stats --exclude '*Rust/*/target/' "$HMDIR/Documents/" "$BKDIR/Documents/" | tee -a "$HMDIR/TempStorage/impfilesbk.log" echo $'\n'`date` "| Done!" | tee -a "$HMDIR/TempStorage/impfilesbk.log" echo "--------------------------------------------------" | tee -a "$HMDIR/TempStorage/impfilesbk.log"