| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| servers:windows:nginx:piwigo [2025/11/18 22:47] – [Back-up] Sean Rhone | servers:windows:nginx:piwigo [2025/11/29 00:43] (current) – [Back-up] Sean Rhone |
|---|
| extension = "mbstring" | extension = "mbstring" |
| extension = "mysqli" | extension = "mysqli" |
| | |
| | error_reporting = "~E_ALL" |
| | display_errors = "Off" |
| | log_errors = "Off" |
| |
| post_max_size = "100M" | post_max_size = "100M" |
| SET "PHP_FCGI_CHILDREN=1" | SET "PHP_FCGI_CHILDREN=1" |
| |
| START "Media PHP-CGI" "php-cgi.exe" -b "127.0.0.1:9003" -c "%SystemDrive%\www\php\media.ini" -q | START "Media PHP-CGI" /MIN "php-cgi.exe" -b "127.0.0.1:9003" -c "%SystemDrive%\www\php\media.ini" -q |
| |
| :: End</code> | :: End</code> |
| ===== Back-up ===== | ===== Back-up ===== |
| |
| * :!: TODO | * ''D:\Servers\Scheduled Backups'' |
| |
| "notepad.exe" "%SystemDrive%\www\scripts\media\Back-up.bat" | "notepad.exe" "%SystemDrive%\www\scripts\media\Back-up.bat" |
| <code> | <code> |
| @echo off | @echo off |
| | |
| | TITLE Media 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\piwigo-files-auto-%RANDOM%.tar.gz" -C "%SystemDrive%\www" "media" |
| | ::"%ProgramFiles%\MariaDB 12.2\bin\mariadb-dump.exe" -u "root" --opt -r "%UserProfile%\Downloads\%RANDOM%-piwigo.sql" "piwigo" |
| |
| :: 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\piwigo-files-auto-%RANDOM%.tar.gz" -C "%SystemDrive%\www" "media" |
| | "%ProgramFiles%\MariaDB 12.2\bin\mariadb-dump.exe" -u "root" --opt -r "D:\Servers\Scheduled Backups\%RANDOM%-piwigo.sql" "piwigo" |
| |
| :: End</code> | :: End</code> |
| TITLE Media Maintenance | TITLE Media Maintenance |
| |
| "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media" gc --aggressive --prune="all" | CALL "%SystemDrive%\www\scripts\media\Git Fix.bat" |
| "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media" fsck --full --strict | |
| | |
| "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media\themes\bootstrap_darkroom" gc --aggressive --prune="all" | |
| "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media\themes\bootstrap_darkroom" fsck --full --strict | |
| |
| :: End</code> | :: End</code> |
| @echo off | @echo off |
| |
| :: Piwigo | TITLE Media Git Fix |
| RMDIR /S /Q "%SystemDrive%\www\media\.git" | RMDIR /S /Q "%SystemDrive%\www\media\.git" |
| |
| "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media" fsck --full --strict | "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media" fsck --full --strict |
| |
| :: Bootstrap Darkroom | |
| RMDIR /S /Q "%SystemDrive%\www\media\themes\bootstrap_darkroom\.git" | RMDIR /S /Q "%SystemDrive%\www\media\themes\bootstrap_darkroom\.git" |
| |
| "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media\themes\bootstrap_darkroom" gc --aggressive --prune="all" | "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media\themes\bootstrap_darkroom" gc --aggressive --prune="all" |
| "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media\themes\bootstrap_darkroom" fsck --full --strict | "%ProgramFiles%\Git\bin\git.exe" -C "%SystemDrive%\www\media\themes\bootstrap_darkroom" fsck --full --strict |
| |
| PAUSE | |
| |
| :: End</code> | :: End</code> |
| ===== Autostart ===== | ===== Autostart ===== |
| |
| ==== CGI ==== | ==== PHP-CGI ==== |
| |
| "explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\StartUp" | "explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\StartUp" |
| ===== Back-up ===== | ===== Back-up ===== |
| |
| * Weekly -> Recur every ''1'' weeks on ''Monday'' | * Monthly -> All months -> Days: ''2'' |
| * ''12:15:00 AM'' | * ''1:15:00 AM'' |
| * :!: TODO | |
| |
| Wiki File Back-up | Media Back-up |
| |
| "%SystemDrive%\www\scripts\media\Back-up.bat" | "%SystemDrive%\www\scripts\media\Back-up.bat" |
| |
| * Monthly -> All months -> Days: ''2'' | * Monthly -> All months -> Days: ''2'' |
| * ''01:30:00 AM'' | * ''1:30:00 AM'' |
| |
| Media Maintenance | Media Maintenance |