mirror of
https://codeberg.org/postscriptum/gemlog.git
synced 2026-02-18 22:12:40 +00:00
28 lines
No EOL
576 B
Bash
Executable file
28 lines
No EOL
576 B
Bash
Executable file
#!/bin/bash
|
|
|
|
SRC="public"
|
|
ZIP="ps.zip"
|
|
|
|
echo "snap $SRC > $ZIP ..."
|
|
cd $SRC
|
|
rm $ZIP
|
|
zip -r -9 $ZIP ./
|
|
cd ../
|
|
|
|
echo "update repository ..."
|
|
git pull
|
|
git add .
|
|
git commit -m "$(date +%s)"
|
|
git push
|
|
|
|
#echo "update remote host (localnet) ..."
|
|
#rclone sync $SRC localnet:ps/public --update -v
|
|
|
|
echo "update remote host (twinkle-ygg) ..."
|
|
rclone sync $SRC twinkle-ygg:ps/public --update -v
|
|
|
|
echo "update remote host (yesterweb) ..."
|
|
rclone sync $SRC yesterweb:/ --update --no-check-certificate -v
|
|
|
|
#echo "update remote host (flounder) ..."
|
|
#rclone sync $SRC flounder-ps:/ --update -v |