/bak

Shortcut to : cp /etc/.../config.conf /etc/.../config.conf.bak

Primary LanguagePython

bak

Intead of typing :

cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf.bak

you just need to type :

bak /etc/nginx/nginx.conf

Setup

  1. Clone the repository
git clone https://github.com/xanhacks/bak.git
cd bak
  1. Add execute permission and move the script to your PATH.
chmod +x bak.py
mv bak.py /usr/local/bin/bak