A convenient Bash function to backup configuration file
For sysadmins, it’s a good practice to backup configuration files before changing them. We normally do it via cp. eg: cp named.conf named.conf.bak cp named.conf named.conf.orig I personally like to use...
View ArticleBash quote trap: why rsync exclude pattern not work
A friend wanted to sync all his files to a remote host, exluding the source files(those with suffix .c, .cpp, .h, .hpp). First I wrote this script #!/bin/bash ####sync.sh (version 1): sync files to...
View Article
More Pages to Explore .....