1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-26 05:08:36 -06:00

Include .git directories

This commit is contained in:
Sayantan Santra 2022-11-11 00:50:40 -06:00
parent 1b3a632171
commit c8fe7ba583

View file

@ -15,7 +15,7 @@ HMDIR="/home/sintan"
BKDIR="/mnt/storage/sintan" BKDIR="/mnt/storage/sintan"
echo `date` "| Backing up Documents..." | tee -a "$HMDIR/TempStorage/impfilesbk.log" 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 $'\n'`date` "| Done!" | tee -a "$HMDIR/TempStorage/impfilesbk.log"
echo "--------------------------------------------------" | tee -a "$HMDIR/TempStorage/impfilesbk.log" echo "--------------------------------------------------" | tee -a "$HMDIR/TempStorage/impfilesbk.log"