add bash script option

This commit is contained in:
postscriptum 2025-10-22 04:07:00 +03:00
parent 67985b8485
commit 96c3419e32

View file

@ -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
=> 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
```