aboutsummaryrefslogtreecommitdiff
path: root/sync-to-kobo
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-08-20 20:44:34 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-08-20 20:44:34 -0300
commite851401694daacaf1aba2c87ed557e5dbf00af02 (patch)
treed772b15f3a5ba9e015936f7162f448a7208a4001 /sync-to-kobo
parentd6a4d78d31ffa57e00a7d5b0a87baa38156cee06 (diff)
downloadscripts-e851401694daacaf1aba2c87ed557e5dbf00af02.tar.gz
scripts-e851401694daacaf1aba2c87ed557e5dbf00af02.tar.bz2
Move scripts to other repositories
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\""