| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| servers:windows:nginx:wordpress [2025/11/21 18:22] – [PHP-CGI] Sean Rhone | servers:windows:nginx:wordpress [2025/11/29 00:43] (current) – [Back-up] Sean Rhone |
|---|
| error_reporting = "~E_ALL" | error_reporting = "~E_ALL" |
| display_errors = "Off" | display_errors = "Off" |
| | log_errors = "Off" |
| |
| [Date] | [Date] |
| |
| <code> | <code> |
| location "~" "/wp-content/themes/(twentyeleven|twentyfifteen|twentyfourteen|twentynineteen|twentyseventeen|twentysixteen|twentyten|twentythirteen|twentytwelve|twentytwentyfour|twentytwentyone|twentytwentythree|twentytwentytwo|twentytwenty)/" { | location "~" "/wp-content/themes/(twentyeleven|twentyfifteen|twentyfourteen|twentynineteen|twentyseventeen|twentysixteen|twentyten|twentythirteen|twentytwelve|twentytwentyfour|twentytwentyone|twentytwentythree|twentytwentytwo|twentytwenty)/" { |
| deny "all"; | deny "all"; |
| } | } |
| |
| # End</code> | # End</code> |
| ====== Scripts ====== | ====== Scripts ====== |
| |
| **** | MKDIR "%SystemDrive%\www\scripts\blog" |
| |
| MKDIR "%SystemDrive%\www\scripts\blog" | "explorer.exe" "%SystemDrive%\www\scripts\blog" |
| |
| ===== PHP-CGI ===== | ===== PHP-CGI ===== |
| ===== Back-up ===== | ===== Back-up ===== |
| |
| * :!: TODO | * ''D:\Servers\Scheduled Backups'' |
| |
| "notepad.exe" "%SystemDrive%\www\scripts\media\Back-up.bat" | "notepad.exe" "%SystemDrive%\www\scripts\blog\Back-up.bat" |
| |
| <code> | <code> |
| @echo off | @echo off |
| | |
| | TITLE Blog Back-up |
| |
| :: User\Downloads | :: User\Downloads |
| "tar.exe" -czf "%UserProfile%\Downloads\dokuwiki-files-auto-%RANDOM%.tar.gz" -C "%SystemDrive%\www\wiki" "data/pages" "data/meta" "data/media" "data/media_meta" "data/attic" "data/media_attic" "conf" | ::"tar.exe" -czf "%UserProfile%\Downloads\wordpress-files-auto-%RANDOM%.tar.gz" -C "%SystemDrive%\www" "blog" |
| | ::"%ProgramFiles%\MariaDB 12.2\bin\mariadb-dump.exe" -u "root" --opt -r "%UserProfile%\Downloads\%RANDOM%-wordpress.sql" "wordpress" |
| |
| :: NAS | :: NAS |
| ::"tar.exe" -czf "D:\Servers\Scheduled Backups\dokuwiki-files-auto-%RANDOM%.tar.gz" -C "%SystemDrive%\www\wiki" "data/pages" "data/meta" "data/media" "data/media_meta" "data/attic" "data/media_attic" "conf" | "tar.exe" -czf "D:\Servers\Scheduled Backups\wordpress-files-auto-%RANDOM%.tar.gz" -C "%SystemDrive%\www" "blog" |
| | "%ProgramFiles%\MariaDB 12.2\bin\mariadb-dump.exe" -u "root" --opt -r "D:\Servers\Scheduled Backups\%RANDOM%-wordpress.sql" "wordpress" |
| |
| :: End</code> | :: End</code> |
| |
| "%SystemDrive%\www\scripts\media\Back-up.bat" | "%SystemDrive%\www\scripts\blog\Back-up.bat" |
| |
| ===== Maintenance ===== | ===== Maintenance ===== |
| ===== Back-up ===== | ===== Back-up ===== |
| |
| * Weekly -> Recur every ''1'' weeks on ''Monday'' | * Monthly -> All months -> Days: ''3'' |
| * ''12:15:00 AM'' | * ''2:15:00 AM'' |
| * :!: TODO | |
| |
| Wiki File Back-up | Blog Back-up |
| |
| "%SystemDrive%\www\scripts\media\Back-up.bat" | "%SystemDrive%\www\scripts\blog\Back-up.bat" |
| |
| ===== Maintenance ===== | ===== Maintenance ===== |