How to backup a copy of apache?

The following command will take a backup of apache on your server

Centos users

cp -a /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak

For Ubuntu users

sudo cp /etc/apache2/apache2.conf /etc/apache2/apache2.conf.bak

kbadmin has written 146 articles

Loading Facebook Comments ...

This site uses Akismet to reduce spam. Learn how your comment data is processed.