diff --git a/public/en/yesterweb-connection-with-webdav.gmi b/public/en/yesterweb-connection-with-webdav.gmi index eeaf570..5f584b3 100644 --- a/public/en/yesterweb-connection-with-webdav.gmi +++ b/public/en/yesterweb-connection-with-webdav.gmi @@ -115,4 +115,38 @@ Recently found yet another fork of the extension above. I haven't tried whether Yesterweb really supports it or what is included in this fork, but the development of this project appears to be quite active, so it is worth checking out: -=> https://github.com/jbodart-argenx/vscode-lsaf-restapi-upload Source on GitHub \ No newline at end of file +=> https://github.com/jbodart-argenx/vscode-lsaf-restapi-upload Source on GitHub + +### Bash script + +Finally, I've switched to the following script, which: + +* Commits changes to the CVS repository +* Creates a .zip archive to download the entire capsule +* Uploads changed files to a local server via SFTP (accessible through Yggdrasil and I2P) +* Uploads changed files to Yesterweb hosting via WebDAV + +``` sync.sh +#!/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:public --update -v + +echo "update remote host (yesterweb) ..." +rclone sync $SRC yesterweb:/ --update --no-check-certificate -v +``` \ No newline at end of file