[clug] database backups with git

Ian Munsie darkstarsword at gmail.com
Tue Jun 12 00:45:31 MDT 2012


>> % cutoff=$(git show --format=%H HEAD~${trim}|head -n 1)
>
> cutoff=$(git rev-parse HEAD~${trim})

Thankyou! I thought there must be a better way to do that :)

/me goes off to edit all his scripts

Cheers,
-Ian

-- 
http://sites.google.com/site/DarkStarJunkSpace
--
http://darkstarshout.blogspot.com/
--
On the day *I* go to work for Microsoft, faint oinking sounds will be
heard from far overhead, the moon will not merely turn blue but
develop polkadots, and hell will freeze over so solid the brimstone
will go superconductive.
     -- Eric S. Raymond, 2005
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


More information about the linux mailing list