From fd24416f4e8fa679929f278234d12841bb70a899 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 26 Jun 2014 13:05:24 -0400 Subject: [PATCH] switch serverwebroot rsync to --archive for guaranteed full sync In `fdroid server update`, the rsync command used --update, which `man rsync` says: "skip files that are newer on the receiver". That could cause issues of the public repo getting out of sync with the private, master repo. --archive is a better sync method since it aims to exactly reproduce the sending dir to the receiving dir. --- fdroidserver/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdroidserver/server.py b/fdroidserver/server.py index 3efe5603..100fff29 100644 --- a/fdroidserver/server.py +++ b/fdroidserver/server.py @@ -115,7 +115,7 @@ def update_awsbucket(repo_section): def update_serverwebroot(repo_section): - rsyncargs = ['rsync', '--update', '--recursive', '--delete'] + rsyncargs = ['rsync', '--archive', '--delete'] if options.verbose: rsyncargs += ['--verbose'] if options.quiet: -- 2.30.2