forked from s3tools/s3cmd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add speed limiting option for uploads
- Loading branch information
Showing
3 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3a64621
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent! This was what I needed to keep my server from slowing down while moving backups to Amazon. This still works in the latest version of s3cmd (1.5.0-beta1) although, obviously, the line numbers aren't current. Also since I'm using Python 2.6, total_seconds() was not available. Had to make a couple of modifications to calculate seconds since the function wasn't available. Thanks for your submission!
3a64621
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm glad to hear it was useful! :) It seemed like a glaring omission to me as well.
From memory, when I wrote it s3cmd wasn't really being actively maintained and pull requests weren't being processed, but last time I checked the situation had changed. If you've got it working with the latest versions of s3cmd and Python, please consider submitting your patch!