Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry failed uploads #8

Closed
fkalis opened this issue Apr 6, 2015 · 1 comment
Closed

Retry failed uploads #8

fkalis opened this issue Apr 6, 2015 · 1 comment

Comments

@fkalis
Copy link
Owner

fkalis commented Apr 6, 2015

If there is a temporary problem with the internet connection when uploading many backup files, the upload of some files might fail.

If this happens it might be useful if the script waited for some seconds (e.g. 5 seconds) and retries the upload (up to 3 times).

@fkalis
Copy link
Owner Author

fkalis commented Mar 8, 2016

Let curl do the work: curl --retry 3 --retry-delay 5

From the manpage:

If a transient error is returned when curl tries to perform a transfer, it will retry this number of times before giving up. Setting the number to 0 makes curl do no retries (which is the default). Transient error means either: a timeout, an FTP 4xx response code or an HTTP 5xx response code.

@fkalis fkalis closed this as completed in 3569b10 Mar 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant