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"