Description
Linux/Unix Shell script to backup file or directory to $HOME. Script creates directory ~/backup/<current date>/.
Then it is copying target file/dir to this dir with current time prefix adding.
If there is directory passed as a target it will be zipped and copied in the same way.
Installation
Place file to some exectable path (i.e. /usr/local/bin/), and set execute-flag via
chmod +x /usr/local/bin/bkp
Usage
Before doing sudo vim /etc/postfix/postfix.rc just make
bkp /etc/postfix/postfix.rc
And almost all will be OK.