1
0
mirror of https://git.topisto.net/tibo/template.git synced 2026-03-31 23:49:11 +00:00
Files
template/frontend/src/tools/syncdata.sh
2024-09-13 17:26:06 +02:00

16 lines
272 B
Bash
Executable File

#!/bin/bash
LADATE=`date +%Y%m%d`
BACKUP=backup/prod.sqlite.$LADATE
pushd ../../../backend/data/db/
if [ ! -f $BACKUP ]; then
mv prod.sqlite $BACKUP
fi
rm -f prod.sqlite
wget https://www.topisto.net/smeti/backend/data/db/prod.sqlite
chmod a+w prod.sqlite
popd
sync