From 59a3bf9efe5e1fba43e8a2266b3873bec7f289d3 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Fri, 29 Jul 2022 22:16:44 -0500 Subject: [PATCH] Filter out unnecessary cache files --- impfilesbk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/impfilesbk b/impfilesbk index 7525213..c1508a6 100644 --- a/impfilesbk +++ b/impfilesbk @@ -37,7 +37,7 @@ echo $'\n'`date` "| Done!" | tee -a "$HMDIR/TempStorage/impfilesbk.log" echo "--------------------------------------------------" | tee -a "$HMDIR/TempStorage/impfilesbk.log" echo `date` "| Backing up some config files and stuff..." | tee -a "$HMDIR/TempStorage/impfilesbk.log" -rsync -aAXH --delete --stats "$HMDIR/.config/" "$BKDIR/config/[dot]config/" | tee -a "$HMDIR/TempStorage/impfilesbk.log" +rsync -aAXH --delete --stats --exclude={'*cache*','*Cache*'} --delete-excluded "$HMDIR/.config/" "$BKDIR/config/[dot]config/" | tee -a "$HMDIR/TempStorage/impfilesbk.log" rsync -aAXH --delete --stats "$HMDIR/.profile" "$BKDIR/config/[dot]profile" | tee -a "$HMDIR/TempStorage/impfilesbk.log" rsync -aAXH --delete --stats "$HMDIR/.bashrc" "$BKDIR/config/[dot]bashrc" | tee -a "$HMDIR/TempStorage/impfilesbk.log" rsync -aAXH --delete --stats "$HMDIR/.Xresources" "$BKDIR/config/[dot]Xresources" | tee -a "$HMDIR/TempStorage/impfilesbk.log"