[clug] database backups with git

Stephen Rothwell sfr at canb.auug.org.au
Tue Jun 12 00:12:49 MDT 2012


Hi Ian,

On Tue, 12 Jun 2012 14:37:00 +1000 Ian Munsie <darkstarsword at gmail.com> wrote:
>
> % trim=10
> % cutoff=$(git show --format=%H HEAD~${trim}|head -n 1)

cutoff=$(git rev-parse HEAD~${trim})

-- 
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/linux/attachments/20120612/16be1fba/attachment.pgp>


More information about the linux mailing list