Advanced Search
Search Results
24 total results found
🔄 Exporting & Restoring
Export one database mariadb-dump --user=<DB_USERNAME> --password --lock-tables --databases <DB_NAME> > /data/backup/db1.sql Restoring mariadb --user=<DB_USERNAME> --password <DB_NAME> < /data/backup/db1.sql
🔔 Low Space
Script #!/bin/bash mingigs=20 avail=$(df | awk '$6 == "/" && $4 < '$mingigs' * 1024*1024 { print $4/1024/1024 }') if [ -n "$avail" ]; then curl \ -H "Title: Low Disk Space" \ -H "Priority: urgent" \ -H "Tags: warning,cd" \ -d "Hello...
⛔️ SSH Access
Script #!/bin/bash if [ "${PAM_TYPE}" = "open_session" ]; then curl \ -H "Title: SSH Login" \ -H "Priority: urgent" \ -H "Tags: warning,door" \ -d "Hello TTBB! There was an SSH login with user ${PAM_USER} from ${PAM_RHOST} host" \ ...
🐚 Useful Commands
Creating an Administrator docker exec -it <NTFY_CONTAINER_NAME> ntfy user add --role=admin <USERNAME>