Minor cosmetic changes.
1 parent 6cedf20 commit 0d29ecb999ce4f2e494c2dda3ba7fe6567321d8b
@root root authored on 4 Aug 2007
Showing 1 changed file
View
6
tconfigfiles
#!/bin/sh
# tconfigfiles - Manage Configuration Files
# Copyright (c) 2007 TundraWare Inc., Des Plaines, IL USA
# All Rights Reserved
# $Id: tconfigfiles,v 1.105 2007/08/04 07:27:15 root Exp $
# $Id: tconfigfiles,v 1.106 2007/08/04 07:28:31 root Exp $
 
 
ARCHIVES=configarchives
CFTREE=configtree
SBASE="\/root\/sysgen\/$CFTREE"
BASE=`echo $SBASE | sed s/\\\\\\\\//g`
CMD=`basename $0`
 
 
case $CMD
in
 
 
"cfarchive") # Make archival copy of current tree
timestamp=`date "+%Y-%m-%d-%H:%M:%S"`
cd $BASE/../
cp -pvR $CFTREE $archdir
tar -czvf $ARCHIVES/$archdir.tar.gz $archdir
rm -rf $archdir
;;
 
 
"cfbku") # Backup configuration files to tree
for f in $*
do
echo "Unknown Command ===> $CMD"
exit 1
;;
 
 
esac