You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently using s3cmd sync to backup a small linux filesystem to s3.
I noticed that, when recovering files from the bucket the files have the right ownerships and permissions but the directories/folders that contain them do not.
Looking at object metadata in S3 it seems that files have the ownership and permissions metadata but the folders do not.
When I do a recovery I find the files have the right permissions and ownership but they can't be accessed because the containing folders do not.
Ideally I would want sync with --preserve to store metadata for directories as well as the files themselves.
Can this data be stored for folder objects as well as file objects?
The text was updated successfully, but these errors were encountered:
Normally, the concept of "folder" does not exist in S3. Only files and the path to them are stored.
This is why empty folders are not saved also.
But there is a new feature in s3cmd that is currently only in MASTER until the next version is released:
When you do a local to remote "sync", if you use the "--keep-dirs" option, "folders" will be also saved in s3 with their permissions.
And so, when you do a remote to local sync, folders should be restored with the correct permissions.
For more details on how it works, we use kind of "empty files" on the S3 side to keep as a kind of "fake folder". This is almost what would do the web interface of aws s3 when you manually create a folder.
It would be highly appreciated if you could give it a try.
@Chris-Leeworthy Would it be possible for you to give a try to the v2.4.0 version with the "-k" flag (in addition with the preserve), to see if your issue is resolved?
I'm currently using
s3cmd sync
to backup a small linux filesystem to s3.I noticed that, when recovering files from the bucket the files have the right ownerships and permissions but the directories/folders that contain them do not.
Looking at object metadata in S3 it seems that files have the ownership and permissions metadata but the folders do not.
When I do a recovery I find the files have the right permissions and ownership but they can't be accessed because the containing folders do not.
Ideally I would want
sync
with--preserve
to store metadata for directories as well as the files themselves.Can this data be stored for folder objects as well as file objects?
The text was updated successfully, but these errors were encountered: