Cron job for backup

Matt Graham danceswithcrows at usa.net
Tue Dec 11 11:47:50 MST 2007


After a long battle with technology, der.hans wrote:
> Am 11. Dec, 2007 schwätzte Patrick Fleming, EA so:
> > BACKUPDIRNAME=`date +Y%m%d%` #these are backtics -
> Use $( ) format for bash and ksh scripts :).
> BACKUPDIRNAME=$( date +Y%m%d% )

Better yet, BACKUPDIRNAME=$( date +%Y%m%d ) unless you have a year named Y 
somewhere in your calendar system (-: .

-- 
   Sturgeon's Law:  90% of everything is crud.
   MG's Extension:  The other 10% is included in "everything," and it's
   recursive.
There is no Darkness in Eternity/But only Light too dim for us to see


More information about the PLUG-discuss mailing list