Restart copy command if stopped?

I’m connecting via SSH on a VPS which I have to do the transfers.
I’m running a copy command on a screen (GDrive to GDrive).
Sometimes it stops probably because Google’s API is buggy (user unauthorized etc).
Is there any way to automatically re-run the command, when it stops before all the transfers are completed?

--retries does this - it is set to 3 by default.

1 Like

Oh, I’ve no idea how I missed that. Thanks!