aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsync-to-kobo3
1 files changed, 2 insertions, 1 deletions
diff --git a/sync-to-kobo b/sync-to-kobo
index edfabf1..8d62859 100755
--- a/sync-to-kobo
+++ b/sync-to-kobo
@@ -24,4 +24,5 @@ if [ ! -d "$BASEFOLDER/$COLLECTION" ]; then
fi
# Dispatch
-lftp -c "open sftp://kobo && mirror -X *.sdr --delete -L -R \"$BASEFOLDER/$COLLECTION\" \"/mnt/sd/$COLLECTION\""
+# Use --exclude with a egrep regexp
+lftp -c "open sftp://kobo && mirror --exclude=.*sdr --delete -L -R \"$BASEFOLDER/$COLLECTION\" \"/mnt/sd/$COLLECTION\""