From 1433976802baf67c89038d699d0a50522bc138cc Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 13 Jun 2018 16:22:08 +0200 Subject: lib/common-functions: recompress_gz() new to recompress databases before sending, so they are transferred faster by rsync --- bin/db-update | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin/db-update') 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."* \ -- cgit v1.2.3-70-g09d2