summaryrefslogtreecommitdiff
path: root/bin/db-update
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-06-13 16:22:08 +0200
committerErich Eckner <git@eckner.net>2018-06-13 16:22:08 +0200
commit1433976802baf67c89038d699d0a50522bc138cc (patch)
tree10c3b0adb34c644fdbeaf20a2a09b925c495987c /bin/db-update
parentd7d699efe7941f626617e952fb8ecf057f493ec8 (diff)
downloadbuilder-1433976802baf67c89038d699d0a50522bc138cc.tar.xz
lib/common-functions: recompress_gz() new to recompress databases before sending, so they are transferred faster by rsync
Diffstat (limited to 'bin/db-update')
-rwxr-xr-xbin/db-update4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/db-update b/bin/db-update
index 7d5af50..a8659a7 100755
--- a/bin/db-update
+++ b/bin/db-update
@@ -418,6 +418,10 @@ for source_stability in \
# and push our local *.db.tar.gz via rsync
while read -r arch repo; do
+ recompress_gz \
+ "${tmp_dir}" \
+ "${tmp_dir}/dbs/${arch}/${repo}/${repo}."*".tar.gz" \
+ "${tmp_dir}/dbs/${arch}/${repo}/${repo}."*".tar.gz.old"
# shellcheck disable=SC2086
${master_mirror_rsync_command} \
"${tmp_dir}/dbs/${arch}/${repo}/${repo}.db."* \