Server Administration

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

Related articles

Was this article helpful?