IHS - cws-khuntly/WebSphere GitHub Wiki


date: 2025-05-08 15:29:47 created: 2025-05-08 15:29:16 categories:

  • WebSphere / Backups

IHS

Create backup date variable:

declare -x BACKUP_DATE_STAMP=$(date +"%d-%m-%Y_%H-%M-%S")

Export the environment variable:

declare -x ENV=XXX

Create the backup directory:

mkdir -pv /nfs/backup/${ENV}/IHS/Configuration

Stop IHS instances:

for instance in $(ls -ltr /opt/IBM/HTTPServer/conf.d | awk '{print $NF}'); do

    /opt/IBM/HTTPServer/bin/apachectl -d /opt/IBM/HTTPServer -f /opt/IBM/HTTPServer/conf/httpd.conf -D ${instance} -k stop

done


Copy  the IHS configuration files:

tar -C /opt/IBM/HTTPServer -cvf - ./conf ./conf.d ./conf.ssl.d ./conf.modules.d| gzip > /nfs/backup/${ENV}/IHS/Configuration/IHS-configuration-backup-${POST_PROCESS_NAME}-${BACKUP_DATE_STAMP}.tar.gz

Back up the full IHS filesystem:

tar -C /opt/IBM -cvf - ./HTTPServer | gzip > /nfs/backup/${ENV}/IHS/IHS-full-backup-${POST_PROCESS_NAME}-${BACKUP_DATE_STAMP}.tar.gz

Start IHS instances:

for instance in $(ls -ltr /opt/IBM/HTTPServer/conf.d | awk '{print $NF}'); do

    /opt/IBM/HTTPServer/bin/apachectl -d /opt/IBM/HTTPServer -f /opt/IBM/HTTPServer/conf/httpd.conf -D ${instance} -k start

done

⚠️ **GitHub.com Fallback** ⚠️