Correct exclude command
This commit is contained in:
parent
e1abd090c5
commit
988174b826
|
@ -63,7 +63,7 @@ in
|
|||
onFailure = [ "unit-status-telegram@%n.service" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
script = ''
|
||||
${pkgs.inotify-tools}/bin/inotifywait -m -r -e create,modify,delete,move --exclude '\.sync_*\.db*' "${pathToMonitor}" |
|
||||
${pkgs.inotify-tools}/bin/inotifywait -m -r -e create,modify,delete,move --excludei '\.sync.*\.db.*' "${pathToMonitor}" |
|
||||
while read -r directory event file; do
|
||||
sleep 10
|
||||
echo "triggered because of $event on $file in $directory"
|
||||
|
|
Loading…
Reference in New Issue