aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-08-16 17:31:09 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-08-16 17:31:09 -0300
commit7dbaa53d8ba084ceee5339baea20f1b73f0d1440 (patch)
tree42b8d30495b67ecc0d152c4c7656fc1fe2ec08b6
parent01b544d19794208a9e228493fcfadfd4ef6b1882 (diff)
downloadscripts-7dbaa53d8ba084ceee5339baea20f1b73f0d1440.tar.gz
scripts-7dbaa53d8ba084ceee5339baea20f1b73f0d1440.tar.bz2
Fix: sync-to-kobo exclude pattern
-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\""