I'm replicating an Apache installation to a new server in a different data centre.
I installed the same version of Apache on the new server and would like to copy all the relevant files from the old server.
Does the following include all the relevant Apache files, or did I miss some files/directories?
#!/bin/bash
HOSTNAME=$( hostname )
ARCHIVE="/tmp/httpd_on_${HOSTNAME}.tar"
rm $ARCHIVE
tar cf $ARCHIVE --exclude="ssl*log*" /run/httpd /sys/fs/cgroup/devices/system.slice/httpd.service /sys/fs/cgroup/systemd/system.slice/httpd.service /etc/logrotate.d/httpd /etc/systemd/system/multi-user.target.wants/httpd.service /etc/systemd/system/httpd.service.d /etc/sysconfig/httpd /etc/httpd /etc/httpd/conf/httpd.conf /var/tmp/systemd-private-*-httpd.service-* /var/log/httpd /var/cache/httpd /var/www
Note: Apache version is 2.4.6 (on CentOS 7.6)