Posts Tagged ‘bash config script’

Simple file backup script for sysadmins

A friend of mine, Tony Krch, wrote this nearly ten years ago and I’ve used it ever since.  When ever I edit a system config file, like /etc/named.conf, I first do cd /etc backup resolv.conf Then I edit.  The backup script makes a copy using “cp -a” of the file, puts it in a sub-directory […]