X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fbackports%2Fcommon;h=050f506a65753c625b4165ed8ec8bbe5cc4d9cff;hb=e39ac4bb9c19e58585b64fba058fb6218a24d9e3;hp=2c7b76ba366b320a074dab046bc963480ae5b7a6;hpb=d11d0610cc3a8e8cfc4d987d8e5d6901195f5f4e;p=dak.git diff --git a/config/backports/common b/config/backports/common index 2c7b76ba..050f506a 100644 --- a/config/backports/common +++ b/config/backports/common @@ -101,3 +101,9 @@ function reports() { # dak cruft-report -s experimental >> $webdir/cruft-report-daily.txt cat $webdir/cruft-report-daily.txt | mail -e -s "Debian archive cruft report for $(date +%D)" team@backports.debian.org } + +function pg_timestamp() { + tsname=${1:-"unknown"} + log "Saving postgres transaction id for ${tsname}" + psql -tAc 'select txid_current();' > $base/backup/txid_${tsname}_$(date +%Y.%m.%d-%H:%M:%S) +}