Use rsync rather than scp

This commit is contained in:
Kovid Goyal 2026-08-09 16:06:20 +05:30
parent 802ef3c1ea
commit 6246523d5c
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -480,7 +480,8 @@ def main() -> None:
else:
shaders = sys.argv[1:]
if shaders == ['upload']:
cmd = ['scp'] + glob.glob(os.path.join(get_destdir(), '*.webm')) + ['dl1:/srv/download/videos/']
cmd = ['rsync', '--info=progress2', '--checksum', '--compress'] + glob.glob(os.path.join(get_destdir(), '*.webm')) + ['dl1:/srv/download/videos/']
print('Uploading changed demo video files...', flush=True)
os.execlp(cmd[0], *cmd)
try:
for which in shaders: