ES backup restore script: fix sleeping between retries