[Info-vax] Long uptime cut short by Hurricane Sandy
Paul Sture
nospam at sture.ch
Sat Feb 2 14:29:43 EST 2013
In article <kejke9$lu9$3 at dont-email.me>,
David Froble <davef at tsoft-inc.com> wrote:
> Paul Sture wrote:
> > Here's the bash I use to format a daily backup prefix:
> >
> > # Get date as YYYY.MM-DD-HHMM
> > NOW=$(date +"%Y-%m-%d-%H%M")
> > DUMPID="sture-$NOW"
> > echo $DUMPID
> >
> > Sample output:
> >
> > sture-2013-02-02-1507
> >
>
> So, which is wrong here, the comment or the result? (No "." in result
> after "YYYY")
Mea culpa. Finger trouble. It should of course read as
# Get date as YYYY-MM-DD-HHMM
(I just decided to add the comment to my backup script after reading
this thread, because although it's obvious to me, it's maybe not to
others.)
--
Paul Sture
More information about the Info-vax
mailing list