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
Different behaviors of s3cmd sync
with both remotes
#1001
Comments
NB: Using |
Can you test the last version MASTER from github or at least the last
release?
A lot of things have been fixed and I think probably your issue as well.
Regarding the checksum match missing thing, this is a side effect of the
invalid target that is calculated.
Le ven. 14 sept. 2018 10:27, Ky-Anh Huynh <notifications@github.com> a
écrit :
… TB: Using s3cmd sync s3://foo/bucket/some/file s3://bar/bucket/some/
works correctly (file will not be copied if checksums match)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1001 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABAUpHum9013s5q-E22nLpo8WJhFY60dks5ua2iMgaJpZM4Wo0m8>
.
|
Dear @fviard , I have installed
|
Hum I see, I realize that you are in a case of remote to remote. I think that the root cause is that when preparing the job, we don't know for either side if they are files or folders. |
I see. I think this is a buggy feature of S3 which allows file and folder to have the same name. On S3 it's possible to have these 3 things
This is very different from the traditional *nix file system. On #850 it's suggested to use the trailing slash to specify the folder. If we can't know remote properties (it's impossible, isn't it?), I think we may learn from the client arguments instead. |
I'm using
s3cmd version 2.0.0
and have noticed the different behaviors ofs3cmd sync
. Consider the following command:it's expected that the command transfers the file
s3://foo/bucket/some/file
tos3://bar/bucket/some/file
. However:s3://bar/bucket/some/file
s3://foo/bucket/some/filefile
(note: filefile)Using
cp
command doesn't have thisproblem
.Also note that both
s3cmd cp
ands3cmd sync
for file don't have any checksum and it always does file copying (this is expensive).Is this documented somewhere, or am I missing something?
Thanks a lot.
The text was updated successfully, but these errors were encountered: