fix: optimize rclone

This commit is contained in:
administrateur 2025-03-30 07:40:35 +02:00
parent 431d50267a
commit bed336fb9f

View File

@ -62,7 +62,7 @@ def rclone_sync(website, local_path):
shutil.rmtree(local_path)
os.makedirs(local_path, exist_ok=True)
cmd = f"rclone --config {config_file} sync {remote_path} {local_path} --verbose"
cmd = f"rclone --config {config_file} sync {remote_path} {local_path} --use-server-modtime --delete-after --fast-list --multi-thread-streams=4 --transfers=8 --checkers=16"
log_debug(f"Syncing from {remote_path} to {local_path}")
return stream_command(cmd)