thedocks/tiddlywiki/tiddly-backup.sh

19 lines
434 B
Bash
Raw Normal View History

2022-11-27 15:27:26 +00:00
#!/bin/bash
# tiddlywiki server backup management
set -e
DATASTORE=/srv/dev-disk-by-uuid-45e2e732-9e00-4a82-a7cc-9c743e033671/datastore/tiddly/
XU4=root@192.168.1.5:/root/thedocks/tiddlywiki/data/
N2=root@192.168.1.4:/mnt/drive/tiddly
PLUS=root@192.168.1.10:/home/odroid/thedocks/tiddlywiki/data
sync(){
rsync -av --delete $1 $2
}
2022-11-27 17:07:06 +00:00
echo "XU4 ->DATASTORE"
sync $XU4 $DATASTORE
2022-11-27 15:27:26 +00:00
echo "DATASTORE ->PLUS"
2022-11-27 17:07:06 +00:00
sync $DATASTORE $PLUS