added minimal config backup function buf()

pull/36/head
Florian Baumann 2010-12-14 14:33:16 +01:00
parent 2ce12674f6
commit ab44572ba4
1 changed files with 7 additions and 1 deletions

View File

@ -87,4 +87,10 @@ function plugins-help() {
| grep -v "COMPREPLY=()" | sed -e "s/()//"
}
# back up file with timestamp
# useful for administrators and configs
buf () {
filename=$1
filetime=$(date +%Y%m%d_%H%M%S)
cp ${filename} ${filename}_${filetime}
}