Quantcast
Channel: LinuxPlayer » Bash
Browsing latest articles
Browse All 2 View Live

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 Article



Image may be NSFW.
Clik here to view.

Bash 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
Browsing latest articles
Browse All 2 View Live




Latest Images