diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-08-16 17:31:09 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-08-16 17:31:09 -0300 |
commit | 7dbaa53d8ba084ceee5339baea20f1b73f0d1440 (patch) | |
tree | 42b8d30495b67ecc0d152c4c7656fc1fe2ec08b6 | |
parent | 01b544d19794208a9e228493fcfadfd4ef6b1882 (diff) | |
download | scripts-7dbaa53d8ba084ceee5339baea20f1b73f0d1440.tar.gz scripts-7dbaa53d8ba084ceee5339baea20f1b73f0d1440.tar.bz2 |
Fix: sync-to-kobo exclude pattern
-rwxr-xr-x | sync-to-kobo | 3 |
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\"" |