1
0
mirror of https://github.com/IEEE-SB-Passau/pelican-deployment-system.git synced 2017-09-06 16:35:38 +02:00

rsync --delay-updates should make things more atomic

This commit is contained in:
2016-06-17 10:56:01 +02:00
parent d68fb3536f
commit d9da77eb7d

View File

@@ -21,7 +21,7 @@ if __name__ == "__main__":
raise SystemExit("Not meant to be run directly!") raise SystemExit("Not meant to be run directly!")
def _rsync_cmd(dest): def _rsync_cmd(dest):
cmd = ("rsync --delete-delay --recursive --times --stats " cmd = ("rsync --delete-delay --recursive --times --stats --delay-updates "
"'{output}/' '{dest}'") "'{output}/' '{dest}'")
return cmd.format(dest=dest, output="{output}") return cmd.format(dest=dest, output="{output}")