Skip to content

Commit

Permalink
C == "-X [Cc]ache" (non-greedy)
Browse files Browse the repository at this point in the history
  • Loading branch information
VR-25 committed May 28, 2022
1 parent 9a9138e commit bae6a39
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tarb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ Flags
c custom (paths)
C exclude all *[cC]ache* files/directories globally (alternative to -X '*[cC]ache*')
C exclude all [Cc]ache files/directories globally (alternative to -X '[Cc]ache')
d data (user and user_de)
Expand Down Expand Up @@ -516,14 +516,14 @@ Examples
-badsm10DeMO . + bromite,etar
Exclude cache and randomFile directories/files globally
-badsm10DeMO . + bromite,etar -X '*[cC]ache*,randomFile'
-badsm10DeMO . + bromite,etar -X '[Cc]ache,randomFile'
Encrypt
-badsm10DeMO -p='strongpassword' . + bromite,etar -X '*[cC]ache*'
-badsm10DeMO -p='strongpassword' . + bromite,etar -X '[Cc]ache'
Alternative to -p='strongpassword'
TPASS='password' tarb -badsm10DeMO . + bromite,etar -X '*[cC]ache*'
TPASS='password' tarb -badsm10DeMO . + bromite,etar -X '[Cc]ache'
Restore
Expand Down Expand Up @@ -969,7 +969,7 @@ fi

# no cache?
! flag C && : > $X || {
echo "*[cC]ache*" > $X
echo "[cC]ache" > $X
FLAGS=$(echo "$FLAGS" | tr -d C)
}

Expand Down Expand Up @@ -1014,7 +1014,7 @@ fi
# *.log
# *.temp
# *.tmp
# *[cC]ache*
# *[Cc]ache*
# *[fF]irebase*
# *[lL]ogs*
# *[tT]humbnail*
Expand Down

0 comments on commit bae6a39

Please sign in to comment.