Join the community today
Register Now

Master Branch update tools/nginx-binary-backup.sh in 124.00stable

Discussion in 'Centmin Mod Github Commits' started by eva2000, May 18, 2022.

  1. eva2000

    eva2000 Administrator Staff Member

    50,869
    11,784
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,237
    Local Time:
    10:41 AM
    Nginx 1.25.x
    MariaDB 10.x
    update tools/nginx-binary-backup.sh in 124.00stable

    - update tools/nginx-binary-backup.sh https://community.centminmod.com/threads/nginx-binary-modules-backup-restore-nginx-binary-backup-sh.15433/ to support detection and backup of newer jemalloc versions' libraries i.e. jemalloc 5.3.0 if a custom jemalloc RPM is installed.
    - when custom jemalloc 5.3.0 RPM is installed, the backup directory name label will include the -je label in the directory name to indicate the Nginx binary was built with custom jemalloc memory allocator
    - usually Centmin Mod Nginx binaries are built to use the jemalloc memory allocator instead of the default system glibc. Centmin Mod Nginx binaries use EPEL EL7 repo provided jemalloc versions which for CentOS 7 is jemalloc 3.6.0 and for EPEL EL8 repos like Alma Linux/Rocky Linux 8 installs jemalloc 5.2.1

    Example backup run when custom made for Centmin Mod Nginx binary's jemalloc 5.3.0 custom RPM is installed show backups include libjemalloc.a, libjemalloc.so and libjemalloc.so.2 files. For EPEL jemalloc installed RPM backup of those files are skipped as EPEL already provides them. Only custom jemalloc 5.3.0 custom RPMs I built for Centmin Mod Nginx would show up in Nginx binary backups like below output.

    /tools/nginx-binary-backup.sh backup
    --------------------------------------------------------
    backup current Nginx binary and dynamic modules
    --------------------------------------------------------
    backup started...
    --------------------------------------------------------
    /home/backup-nginxbin/1.21.6-gcc-10.2.1-20210130-openssl-1.1.1o-170522-095611-hpack-pcre2-je
    ├── bin
    │ └── nginx
    ├── dynamic-modules.conf
    ├── dynamic-modules-includes.conf
    ├── libs
    │ ├── libatomic_ops.a
    │ ├── libatomic_ops.la
    │ ├── libatomic_ops.so -> libatomic_ops.so.1.1.1
    │ ├── libatomic_ops.so.1 -> libatomic_ops.so.1.1.1
    │ ├── libatomic_ops.so.1.1.1
    │ ├── libjemalloc.a
    │ ├── libjemalloc.so -> libjemalloc.so.2
    │ ├── libjemalloc.so.2
    │ ├── libpcre2-8.a
    │ ├── libpcre2-8.la
    │ ├── libpcre2-8.so -> libpcre2-8.so.0.10.4
    │ ├── libpcre2-8.so.0 -> libpcre2-8.so.0.10.4
    │ └── libpcre2-8.so.0.10.4
    └── 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_geoip2_module.so
    ├── ngx_http_headers_more_filter_module.so
    ├── ngx_http_image_filter_module.so
    ├── ngx_http_js_module.so
    ├── ngx_http_modsecurity_module.so
    ├── ngx_http_set_misc_module.so
    ├── ngx_http_vhost_traffic_status_module.so
    ├── ngx_stream_geoip2_module.so
    └── ngx_stream_js_module.so


    3 directories, 30 files
    backup finished...
    --------------------------------------------------------
    backup created at /home/backup-nginxbin/1.21.6-gcc-10.2.1-20210130-openssl-1.1.1o-170522-095611-hpack-pcre2-je
    --------------------------------------------------------

    Continue reading...

    Centmin Mod Github Master branch

    Master branch is where most recent commits are made as at May 24, 2015.