I tried that but the calibre-server doesn't seem to add from an import folder only the full calibre app. For what I need it for the server part is fine so I will use the rsync & stop/start script.
Edit: I am trialling a reader on my android tablet, so far I don't like it as much as my old Sony so not sure if I will keep it. But the easiest way of getting books on it was via the web server. Hence this thread.
I currently have :-
#!/bin/bash
if [ -f ~/Books/incoming/*.* ]
then
echo "Found books!"
killall calibre-server
sleep 2
calibredb add -r ~/Books/incoming/ > ~/updatedb.txt
sleep 1
rm -rf ~/Books/incoming/
mkdir ~/Books/incoming/
nohup calibre-server&
else
echo "no books found"
fi
to add to a cron job every 2 hours.
Last edited by hairybiker; 03-26-2013 at 02:10 PM.
|