mirror of
https://codeberg.org/postscriptum/gemlog.git
synced 2026-02-19 06:22:41 +00:00
add bash script option
This commit is contained in:
parent
67985b8485
commit
96c3419e32
1 changed files with 35 additions and 1 deletions
|
|
@ -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
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue