add sync all feature to gmirator

This commit is contained in:
stev 2023-02-22 01:16:45 +01:00
parent 18c10bc30f
commit d10b1bd83b

View file

@ -114,6 +114,10 @@ synchronise() {
elif [[ $PARAM == "gmi" ]]; then
echo "Synchtonising GMI content with remote"
rsync -aP -e "ssh -p 1312" $LGMI $RGMI
else
echo "Synchtonising GMI and HTML content with remote"
rsync -aP -e "ssh -p 1312" $LHTML $RHTML
rsync -aP -e "ssh -p 1312" $LGMI $RGMI
fi
}