update tools/nginx-binary-backup.sh in 123.09beta01 Updated tools/nginx-binary-backup.sh to detect and label nginx binaries which have been compiled with Nginx debug mode (--with-debug) Beta Branch - Nginx binary + modules backup/restore - nginx-binary-backup.sh Continue reading... 123.09beta01 branch Branch: centminmod/centminmod Commit History: centminmod/centminmod
Example backup for nginx binary with debug mode enabled Code (Text): ./nginx-binary-backup.sh backup -------------------------------------------------------- backup current Nginx binary and dynamic modules -------------------------------------------------------- backup started... -------------------------------------------------------- /home/backup-nginxbin/1.15.5-gcc-7.3.1-20180303-openssl-1.1.1-281018-154246-debug +-- bin | +-- nginx +-- dynamic-modules.conf +-- dynamic-modules-includes.conf +-- modules +-- ndk_http_module.so +-- ngx_http_brotli_filter_module.so +-- ngx_http_brotli_static_module.so +-- ngx_http_echo_module.so +-- ngx_http_fancyindex_module.so +-- ngx_http_headers_more_filter_module.so +-- ngx_http_image_filter_module.so +-- ngx_http_set_misc_module.so +-- ngx_stream_module.so 2 directories, 12 files backup finished... -------------------------------------------------------- backup created at /home/backup-nginxbin/1.15.5-gcc-7.3.1-20180303-openssl-1.1.1-281018-154246-debug -------------------------------------------------------- This means you can compile a debug build of Nginx, run tools/nginx-binary-backup.sh to back it up and then restore a previous backup nginx build without debug mode for 24/7 live production use. If you need to debug nginx, instead of recompiling, you just restore a backed up copy of nginx with debug built. List of backups made that you can restore switch to Code (Text): ./nginx-binary-backup.sh list -------------------------------------------------------- Listing of available Nginx binary/module backups -------------------------------------------------------- /home/backup-nginxbin/1.15.5-gcc-7.3.1-20180303-openssl-1.1.1-281018-153813 /home/backup-nginxbin/1.15.5-gcc-7.3.1-20180303-openssl-1.1.1-281018-153557 /home/backup-nginxbin/1.15.5-gcc-7.3.1-20180303-openssl-1.1.1-281018-154246-debug --------------------------------------------------------