backup database earlier

This commit is contained in:
2024-07-17 19:42:22 +02:00
parent ba0d301d36
commit 63c1dfcb72

View File

@ -37,13 +37,13 @@ download() {
echo -e "${IGREEN}has internet${NO_COLOR}"
done
[[ $(hostname) != \s\a\t\a\n ]] && cp ./gallery-dl/archive-$1.sqlite3 /data/backup
if [ -s to_download_$1.txt ]; then
exit 1
# exit with some kind of error
# service should then send error and fitting message to ntfy
fi
[[ $(hostname) != \s\a\t\a\n ]] && cp ./gallery-dl/archive-$1.sqlite3 /data/backup
}
[[ $(hostname) == \s\a\t\a\n ]] && setup_test