[dak/master] 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 <algernon@madhouse-project.org>
---
config/debian/cron.hourly | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/config/debian/cron.hourly b/config/debian/cron.hourly
index fa565c4..e103655 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)
--
1.7.2.5
Reply to: