Changed archive default naming to begin with the date string.
1 parent f34d834 commit 257006fa306524a87b436fd7147eee7179740020
@tundra tundra authored on 22 Oct 2014
Showing 1 changed file
View
6
tbku
# Automated Backup Script For TundraWare Inc. Servers
# Copyright (c) 2004-2013, TundraWare Inc., Des Plaines, IL
# All Rights Reserved.
# For Updates See: http://www.tundraware.com/Software/tbku
# $Id: tbku,v 1.117 2013/04/01 14:24:17 tundra Exp $
# $Id: tbku,v 1.118 2014/10/22 22:17:55 tundra Exp $
 
 
#####
# Things User May Want To Change
###
# File Naming
###
 
DATETIME=-`${DATE} "+%Y%m%d"` # Datestamp used to uniquely ID backups
DATETIME=`${DATE} "+%Y%m%d"` # Datestamp used to uniquely ID backups
MACHINE=`${HOSTNAME} -f`- # FQDN of the machine we're on
OSTYPE=`${UNAME} -s`- # Operating System Type
OSREV=`${UNAME} -r`- # Operating System Revision Level
HWTYPE=`${UNAME} -p` # Processor Type
do
s=`echo $x | ${SED} "s/.*\.//"` # Get the suffix
 
BASENAME=$BKUNAME-$s
STAMPEDNAME=${BASENAME}${DATETIME}
STAMPEDNAME=${DATETIME}-${BASENAME}
 
#####
# Distinguish Between Tape And File Backups
#####