From 3a87a2aaf3be37638d101d18b59d6ba10e9b00b1 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sun, 16 Sep 2012 18:56:45 +0000 Subject: [PATCH] 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 --- config/debian/cron.hourly | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- 2.39.2