Intead of typing :
cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf.bak
you just need to type :
bak /etc/nginx/nginx.conf
- Clone the repository
git clone https://github.com/xanhacks/bak.git
cd bak
- Add execute permission and move the script to your PATH.
chmod +x bak.py
mv bak.py /usr/local/bin/bak