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

mc cp: add auto-resume #2046

Closed
accaldwell opened this issue Feb 28, 2017 · 5 comments
Closed

mc cp: add auto-resume #2046

accaldwell opened this issue Feb 28, 2017 · 5 comments

Comments

@accaldwell
Copy link

I use mc as it is the only S3 client that can reliably resume uploads. I frequently make uploads that take multiple days, and the upload connection reliably dies every few hours or so. As is, I have to keep an eye on this, and resume manually. Large/long uploads can require me to manually resume dozens of times for successful completion.

I'd like to request an auto-resume feature. Ideally this would attempt to auto resume transfers after, say 60 seconds (or even better a user-defined resume waiting period).

@harshavardhana
Copy link
Member

mc cp already resumes if you retry again. Rather than having mc cp to retry and auto resume` you could easily script this out.. wouldn't it be better @accaldwell - Because it is not an expected behavior for everyone.

@harshavardhana
Copy link
Member

mc cp already resumes if you retry again. Rather than having mc cp to retry and auto resume` you could easily script this out.. wouldn't it be better @accaldwell - Because it is not an expected behavior for everyone.

Closing this as a non issue / out of scope for the moment.

@kapolos
Copy link

kapolos commented Jul 10, 2017

@harshavardhana mc cp does not auto-resume properly if -r is used. It only works as you described when the -r is not used.

This is my script:

#!/bin/bash

until "$@"; do
  echo Tansfer disrupted, retrying in 10 seconds...
  sleep 10
done

Every time, it restarts from zero (it's obvious at the end of the screenshot).
image

On the contrary, if I use the resume command, it works as intended. I think this should be considered for fixing because it is easier to script it like I did instead of parsing out the resume command each time.

@David-Development
Copy link

@harshavardhana Is there any update on this? I'm encountering some similar issues when using the mc cp command. Maybe an additional flag would be useful e.g. mc cp -r --retry 10 (retry 10 times using exp backoff?).

@kapolos did you figure out a workaround yet?

@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants