From: Gergely Nagy Date: Sun, 16 Sep 2012 18:56:45 +0000 (+0000) Subject: debian/cron.hourly: Dump & push the external_files table to security X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=3a87a2aaf3be37638d101d18b59d6ba10e9b00b1;p=dak.git debian/cron.hourly: Dump & push the external_files table to security To make the external_files table useful, it needs to be populated. But it only needs to have that on security, so lets export 7 push the table there from cron.hourly. (Commented out for now, pending info) Signed-off-by: Gergely Nagy --- diff --git a/config/debian/cron.hourly b/config/debian/cron.hourly index fa565c4e..e1036550 100755 --- a/config/debian/cron.hourly +++ b/config/debian/cron.hourly @@ -46,6 +46,12 @@ ssh -o Batchmode=yes -o ConnectTimeout=30 -o SetupTimeout=30 -2 -i ${base}/s3kr1 $scriptsdir/generate-di +# Push files over to security +#pg_dump -a -F p -t files | sed -e "s,^COPY files (,DELETE FROM external_files; COPY external_files (," | xz -3 | \ +# ssh -o BatchMode=yes -o ConnectTimeout=30 -o SetupTimeout=30 -2 -i ${base}/s3kr1t/push-external_files dak@wherever sync +# +# The key should run the following command: +# 'xzcat | pg_restore -1 -a' # do the buildd key updates BUILDDFUN=$(mktemp -p "${TMPDIR}" BUILDDFUN.XXXXXX)