- Fill out
sample.env
, thenmv sample.env .env
for these scripts to work properly - Configure SSMTP and neomutt per instructions in
backups/README.md
, which will enable email notifications
drive-health.sh {test | report}
This script is used for the monitoring of drive health using smartctl and built-in ZFS monitoring There are two different functions
test
- full smartctl test, ZFS trim, and ZFS scrub for each drivereport
- email a smartctl and ZFS report for each drive
ha-notify.sh <SUBJECT> <BODY>
Used to easily send a notification to the Home Assistant app on my phone.
scan-media-files.sh
This simple script sets the right file ownership/permissions for all of my media files
restart.sh
This script restarts all running docker containers and installs packages that Nextcloud needs to provide video file previews.
scan-nextcloud-files.sh
This script sets all file permissions and ownerships for my Nextcloud files. This ensures proper access controls for the Nextcloud web UI. Afterwards, it has Nextcloud scan all files, ensuring that the web UI is aware of and displays all present files.
test-qbittorrent.sh
lidarr_monitor_new_albums.sh
This script monitors albums if:
- The artist is monitored
- The album has been released in the last 30 days
- The album is not a single
This functionality is built into Lidarr, but has been broken for a while
nextcloud-ai-taskprocessing.sh
https://docs.nextcloud.com/server/latest/admin_manual/ai/overview.html#systemd-service
This script improves Nextcloud Assistant's AI task pickup speed responsiveness. By default, an assistant query will be processed as a background job, which is run every 5 minutes. This script, along with [email protected]
, processes AI tasks as soon as they are scheduled, rather than the user having to wait up to 5 minutes.
To use this script, first modify the script path present in [email protected]
and move it to the systemd services folder:
mv [email protected] /etc/systemd/system
Then, enable and start the service 4 or more times:
for i in {1..4}; do systemctl enable --now nextcloud-ai-worker@$i.service; done
Check the status for success and ensure the workers have been deployed:
systemctl status [email protected]
systemctl list-units --type=service | grep nextcloud-ai-worker