summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-10-18 15:08:43 +0200
committerHolger Levsen <holger@layer-acht.org>2014-10-18 15:15:17 +0200
commit55b16c89b5800a9133ce39e8f8530938c81158f8 (patch)
tree14633fc655c7dd95dd39dabfea29ed6b496a5529
parentda205d0c42ee816cf341c22e5392c56efe1a7573 (diff)
downloadjenkins.debian.net-55b16c89b5800a9133ce39e8f8530938c81158f8.tar.xz
reproducible: do backup in setup script
-rwxr-xr-xbin/reproducible_html_graphs.sh4
-rwxr-xr-xbin/reproducible_setup.sh3
2 files changed, 3 insertions, 4 deletions
diff --git a/bin/reproducible_html_graphs.sh b/bin/reproducible_html_graphs.sh
index 71d54ee9..f02b2d5c 100755
--- a/bin/reproducible_html_graphs.sh
+++ b/bin/reproducible_html_graphs.sh
@@ -9,10 +9,6 @@ common_init "$@"
# common code defining db access
. /srv/jenkins/bin/reproducible_common.sh
-# FIXME: move to daily cleanup job
-# cp db away for backup purposes
-cp $PACKAGES_DB /var/lib/jenkins/userContent/reproducible.db
-
set +x
init_html
gather_stats
diff --git a/bin/reproducible_setup.sh b/bin/reproducible_setup.sh
index 5466f755..c89be793 100755
--- a/bin/reproducible_setup.sh
+++ b/bin/reproducible_setup.sh
@@ -9,6 +9,9 @@ common_init "$@"
# common code defining db access
. /srv/jenkins/bin/reproducible_common.sh
+# cp db away for backup purposes
+cp $PACKAGES_DB /var/lib/jenkins/userContent/reproducible.db
+
set +x
# blacklist some packages
for PKG in linux cups zurl openclipart eigen3 xmds2 ; do