Oh and ... don't forget to make the #bashscript executeable by the webserver (usually www-data)
More about #Nextcloud #workflow scripts:
https://github.com/nextcloud/workflow_script#placeholders
Update Nextcloud filecache:
https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html#scan
Good luck!
Make backups and don't wipe your drive :))
PS:
Yes ... it's hacky ... everything would be much easier if the #Signal app would have the option "automatically delete old backups" :)
It executes the script ...
/path/to/script/manage-signal-backups.sh %f %n
Which uses the filesystem path for the (%f) for deletion of the other files in the same directory
working_dir=$(echo "${1%/*}/")
ls -td ${working_dir}* | grep /signal-.*\.backup | tail -n +2 | xargs rm --
and the Nextcloud-Path (%n) for efficiently updating the file database
nc_relpath=$(echo "${2%/*}/")
php /path/to/occ files:scan --path="${nc_relpath}"
Now old Signal-backup-files get deleted automatically.
#Signal #Backups in #Nextcloud
I'm not a bash programmer and the following script includes deleting files. So pls be aware.
I'm using the Nextcloud app for syncing the Signal backup folder on my phone.
But the daily generated backup files don't get deleted by Signal and eat up all my storage on my phone.
So I created a Nextcloud workflow script, deleting all older signal backups listening on file creation of files with the pattern:
/signal-\d\d\d\d-\d\d-\d\d-\d\d-\d\d-\d\d\.backup/i
...
Tipp für alle User:innen mit englischem Tastaturlayout, die dann doch ab und zu Umlaute brauchen:
Es gibt einen "Alternate Characters Key" (Standard: Right Alt bzw. AltGr).
Damit kann man schnell auf viele Sonderzeichen (auf der dritten Ebene) zugreifen.
Man muss dafür das englische internationale Tastaturlayout mit Dead Keys aktiviert haben.
Hier ein paar Beispiele:
Right Alt + q -> ä
Right Alt + p -> ö
Right Alt + y -> ü
Right Alt + s -> ß
📷 Screenshots für die Einstellungen unter #gnome
Today, I spent a few hours on debugging a #nextcloud which didn't come up after a reboot.
No errors in any logs... but a protocol error on every request.
I was searching a long time on the wrong places.
Turns out:
The problem was a configuration error in #NGINX which didn't get caught by the automatic check and just got relevant after a recent upgrade:
A quote (in the line add_header Strict-Transport-Security) wasn't closed.
~ Werbeeinschaltung für Freunde ~
Die Zirkusband veröffentlicht ihr Debutalbum in Kombi mit einer Crowdfundingaktion.
Trompetenunterricht, Meditationscoaching und Unterhosen inklusive!
Lesson learned for #nextcloud #nginx #fastcgi and #php-fpm
set
fastcgi_buffering off
in nginx config to avoid directory-zip-download stopping with unfinished transfer and http status 200 after (in my case) 30sec