mirror of
https://git.topisto.net/tibo/template.git
synced 2026-04-01 01:59:11 +00:00
initialisation with SMETI code
This commit is contained in:
15
frontend/src/tools/syncdata.sh
Executable file
15
frontend/src/tools/syncdata.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/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
|
||||
|
||||
Reference in New Issue
Block a user