Add scripts for updating and backing up data

This commit is contained in:
2022-02-12 00:44:32 -05:00
parent 4d9855552b
commit eb92f7191d
3 changed files with 20 additions and 0 deletions

4
scripts/sync.sh Normal file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
export $(grep -v '^#' .env | xargs -d '\n')
rsync -raz -e "ssh -p ${STATIC_SERVER_PORT}" cells ${STATIC_SERVER_USER}@${STATIC_SERVER_HOST}:/srv/
rsync -raz -e "ssh -p ${STATIC_SERVER_PORT}" mods ${STATIC_SERVER_USER}@${STATIC_SERVER_HOST}:/srv/