Hi,
I’ve been using restic for almost a year now and I’m really happy with it. I’d like to check something with you. Sometimes when I backup to S3 I will get some errors. Few examples from my latest backup:
rclone: 2020/01/23 00:26:13 ERROR : data/37/......: Post request put error: s3 upload: 400 Bad Request: <?xml version="1.0" encoding="UTF-8"?><Error><Code>RequestTimeout</Code><Message>Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.
rclone: 2020/01/23 00:26:13 ERROR : data/37/......: Post request rcat error: s3 upload: 400 Bad Request: <?xml version="1.0" encoding="UTF-8"?><Error><Code>RequestTimeout</Code><Message>Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.
Each time it happens I check the return code for the restic command. Each time I have a return code set to 0, which is the standard code to tell that all is fine. When I have any error/warning I run a check --read-data
to check the repository. No error were found so far.
So, back to my question. In such situation, is it safe to say that a value of 0 for the return code means that the backup completed successfully ? Or should I continue to check the repository when error happens ?
Thanks.