[LBo] howto generate file names with dates for TAR backups?
Stefan Waidele
Stefan at Waidele.info
Mon Feb 5 14:11:17 CET 2007
Anita Lewis schrieb:
> [...]
> I'm using Stefan's method.
So am I... what a coincidence :)
> [...]
> export FN=`date +%Y-%m-%d-%a-%Hh%M.tgz`
While this is correct, since I have written that page, I learned (from
RUTE, IIRC) and experienced that $(...) is better than `...` because the
backticks are easily misstaken for regular single quotes.
So that line should read:
export FN=$(date +%Y-%m-%d-%a-%Hh%M.tgz)
I updated the wikipage accordingly,
Stefan
--
http://LinuxBasics.org http://Krone-Neuenburg.com
http://Stefan.Waidele.info http://sl.stots.de/blog
More information about the QnA
mailing list