Added machine name to archive name/dir.
1 parent 9d32061 commit a1b04e5e7fafcc00fa8d830a62f25f55c526e85c
@root root authored on 23 Oct 2008
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.107 2007/09/10 20:01:14 root Exp $
# $Id: tconfigfiles,v 1.108 2008/10/23 17:19:33 root Exp $
 
 
ARCHIVES=archives
CFTREE=tree
 
"cfarchive") # Make archival copy of current tree
timestamp=`date "+%Y-%m-%d-%H:%M:%S"`
cd $BASE/../
archdir=$CFTREE-$timestamp
MACHNAME=`uname -n`
archdir=$MACHNAME-$CFTREE-$timestamp
cp -pvR $CFTREE $archdir
tar -czvf $ARCHIVES/$archdir.tar.gz $archdir
rm -rf $archdir
;;