Updated copyright.
Removed colons from timestamps in archive filenames.
Invocation of script by canonical name now creates requisite symlinks.
1 parent 673ff06 commit 630cf021006aa11308ca5b7afe8fc4c08af64955
@tundra tundra authored on 12 Feb 2013
Showing 1 changed file
View
12
tconfigfiles
#!/bin/sh
# tconfigfiles - Manage Configuration Files
# Copyright (c) 2007-2008 TundraWare Inc., Des Plaines, IL USA
# Copyright (c) 2007-2013 TundraWare Inc., Des Plaines, IL USA
# All Rights Reserved
# $Id: tconfigfiles,v 1.110 2013/02/13 00:46:08 tundra Exp $
# $Id: tconfigfiles,v 1.111 2013/02/13 02:44:04 tundra Exp $
 
 
ARCHIVES=archives
CFTREE=tree
in
 
 
"cfarchive") # Make archival copy of current tree
timestamp=`date "+%Y-%m-%d-%H:%M:%S"`
timestamp=`date "+%Y-%m-%d-%H%M%S"`
cd $BASE/../
MACHNAME=`uname -n`
archdir=$MACHNAME-$CFTREE-$timestamp
cp -pvR $CFTREE $archdir
cp -pvR $f $targetdir
done
;;
 
tconfigfiles)
INSTALLDIR=`dirname $0`
ln -s $0 $INSTALLDIR/cfarchive
ln -s $0 $INSTALLDIR/cfbku
ln -s $0 $INSTALLDIR/cfinstall
;;
 
*)
echo "Unknown Command ===> $CMD"
exit 1