rasdial.exe "VPNName" "Username" "Password"
rasdial.exe "VPNName" /DISCONNECT
/etc/vzdump.conf 增加
script: /etc/your-custom-script.sh
編輯 /etc/your-custom-script.sh 內容如下
#!/bin/bash
# $1=post-restart $2=snapshot <backup Mode> $3=100 <lxc id>
# STOREID=local
# TARGET=/var/lib/vz/dump/vzdump-lxc-100.tar.zst
# VMTYPE=lxc
if [ "$1" == "post-restart" ]; then
do something
fi
if [ "$1" == "job-end" ]; then
do something else
fi
exit 0
相關狀態
job-start Called once at the beginning of the entire backup job.
backup-start Called before the backup of an individual VM/container starts.
pre-stop Called before stopping or suspending a VM/container (in stop or suspend mode).
post-restart Called after restarting a VM/container (in suspend or snapshot mode).
backup-end Called after an individual VM/container backup finishes successfully.
log-end Called when the log file is complete and available.
job-end Called once at the end of the entire backup job if successful.
job-abort Called if the job is aborted or encounters a major error.
backup-abort Called if an individual VM backup fails.
https://pgl.yoyo.org/as/serverlist.php?hostformat=dnsmasq-server
https://github.com/FutaGuard/LowTechFilter?tab=readme-ov-file
https://github.com/hagezi/dns-blocklists
https://raw.githubusercontent.com/notracking/hosts-blocklists/master/dnsmasq/dnsmasq.blacklist.txt
參考資訊
https://www.ptt.cc/bbs/AdBlock/M.1616322714.A.62E.html
dnsmasq 設定範例
編輯 /etc/dnsmasq.d/adblock.list.conf 加入阻擋內容
server=/www.0xplusdapp.com/
server=/www.0xdappplus.com/
server=/www.0857.games/
Apache2 錯誤訊息
Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration
缺相關 Module
a2enmod headers
apache2ctl -M | grep headers_module
SQLite Encryption Extension (SEE)
https://sqlite.org/com/see.html
sqlcipher
https://www.zetetic.net/sqlcipher/
https://github.com/zhouchangsheng/sqlcipher
apt install -y sqlcipher
sqlite-encrypt
https://github.com/jingqi/sqlite-encrypt/blob/master/README.md
SQLiteCrypt
https://www.sqlite-crypt.com/