aboutsummaryrefslogtreecommitdiff
path: root/sync-to-kobo
diff options
context:
space:
mode:
Diffstat (limited to 'sync-to-kobo')
-rwxr-xr-xsync-to-kobo28
1 files changed, 0 insertions, 28 deletions
diff --git a/sync-to-kobo b/sync-to-kobo
deleted file mode 100755
index 8d62859..0000000
--- a/sync-to-kobo
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/bash
-#
-# A mini-wrapper to sync a local folder into kobo.
-#
-
-# Parameters
-BASENAME="`basename $0`"
-BASEFOLDER="$HOME/data/doc"
-COLLECTION="$*"
-
-# Check
-if [ -z "$COLLECTION" ]; then
- echo "usage: $BASENAME <colletion>"
- echo "available base collections:"
- echo ""
- ls $BASEFOLDER
- exit 1
-fi
-
-# Ensure collection exists
-if [ ! -d "$BASEFOLDER/$COLLECTION" ]; then
- echo "error: no such collection $COLLECTION at $BASEFOLDER"
- exit 1
-fi
-
-# Dispatch
-# Use --exclude with a egrep regexp
-lftp -c "open sftp://kobo && mirror --exclude=.*sdr --delete -L -R \"$BASEFOLDER/$COLLECTION\" \"/mnt/sd/$COLLECTION\""