diff --git a/update-mirror.sh b/update-mirror.sh index fe840cb..c474053 100755 --- a/update-mirror.sh +++ b/update-mirror.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash echo $LIBRARY_PATH -rsync -avz aleph.gutenberg.org::gutenberg-epub/feeds/pg_catalog.csv . +rsync -avz aleph.gutenberg.org::gutenberg-epub/feeds/pg_catalog.csv $LIBRARY_PATH/ rsync -avz --delete --delete-excluded --exclude "/images/" --exclude "/pg/" --exclude "/retired/" --exclude "/cache/" --exclude "*/*-page-images/*" --exclude "*/*-page-images/" --exclude "*/old/*" --exclude "*/old/" --include "*/" --include "*.htm" --include "*.jpg" --include "*.png" --include "*.gif" --exclude "*" aleph.gutenberg.org::gutenberg $LIBRARY_PATH/html-src rm html-src/hosted-by-ibiblio.png diff --git a/update.sh b/update.sh index fad1248..17abfd5 100755 --- a/update.sh +++ b/update.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash source ./env +cd /app/updater ./update-mirror.sh ./db-update.py ./html-to-epub.sh