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