-
Notifications
You must be signed in to change notification settings - Fork 254
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
command/sync: add --include
flag
#600
command/sync: add --include
flag
#600
Conversation
c21ee76
to
ab97b40
Compare
@ahmethakanbesel This feature deserves its own section in README with a few realistic examples. Could you write one?
|
command/cp.go
Outdated
@@ -777,6 +798,23 @@ func (c Copy) shouldOverride(ctx context.Context, srcurl *url.URL, dsturl *url.U | |||
return stickyErr | |||
} | |||
|
|||
// shouldCopyObject checks is object should be copied. |
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.
// shouldCopyObject checks is object should be copied. | |
// shouldCopyObject determines whether or not the object should be copied. |
command/rm.go
Outdated
@@ -195,6 +219,23 @@ func (d Delete) Run(ctx context.Context) error { | |||
return multierror.Append(merrorResult, merrorObjects).ErrorOrNil() | |||
} | |||
|
|||
// shouldDeleteObject checks is object should be deleted. | |||
func (d Delete) shouldDeleteObject(object *storage.Object, verbose bool, prefix string) bool { |
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.
This logic is duplicated in shouldCopyObject
function. Can we extract this logic to a function and re-use it in both cp and rm commands?
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.
Yes, it's possible. f008722
This PR adds a new io.WriterAt adapter for non-seekable writers. It uses an internal linked list to order the incoming chunks. The implementation is independent from the download manager of aws-sdk-go, and because of that currently it can not bound the memory usage. In order to limit the memory usage, we would have had to write a custom manager other than the aws-sdk-go's implementation, which seemed unfeasible. The new implementation is about %25 percent faster than the older implementation for a 9.4 GB file with partSize=50MB and concurrency=20 parameters, with significantly higher memory usage, on average it uses 0.9 GB of memory and at most 2.1 GB is observed. Obviously, the memory usage and performance is dependent on the partSize-concurrency configuration and the link. Resolves peak#245 Co-authored-by: İbrahim Güngör <[email protected]>
can --include filter be added to ls command? |
@tooptoop4 could you please open an issue for this request? |
Co-authored-by: İlkin Balkanay <[email protected]>
Hi, curious when the next release is planned to go out? We'd like to start using the |
@markkdev Hey. Next release will be cut after all the issues are fixed in https://github.com/peak/s5cmd/milestone/9. |
@igungor Great, thanks for the response. Looking forward to it. |
Resolves #516
Changes are made:
--include
flag to thecp
command--include
flag to therm
commandAs
sync
usescp
andrm
commands in the background,--include
can also be used withsync
.--exclude
has precedence over the--include
flag.