I certainly agree, that you cannot depend upon Dropbox alone, and you need to backup and check the libraries often. That said, here is a simple-minded script that works on my linux machine to do what was suggested:
Code:
dropbox start
dropbox status
echo -n "SYNCING CALIBRE"
wait_time=15
i=0
while [ $i -le $wait_time ]; do
echo -n .
((i++))
done
dropbox stop
echo -n "STOPPING DROPBOX"
i=0
while [ $i -le $wait_time ]; do
echo -n .
((i++))
done
calibre
echo - n "SYNCING DROPBOX"
i=0
while [ $i -le $wait_time ]; do
echo -n .
((i++))
done
dropbox start
dropbox status
i=0
while [ $i -le $wait_time ]; do
echo -n .
((i++))
done
dropbox stop