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

Introduce a flag to preserve timestamps of files and preserve file ownership #710

Closed
wants to merge 1 commit into from

Conversation

Ahuge
Copy link

@Ahuge Ahuge commented Mar 6, 2024

This PR is a wrap up of #534 plus a flag to preserve file ownership.

This has been rebased off of master as well.

We are implementing a flag that when activated will record and store ctime, mtime, and atime in S3 as metadata on the object.
When pulling files down, if that data exists, we will set it on the files as well.

Linux & Darwin don't appear to allow setting of ctime, however atime and mtime are preserved.
Windows does allow us to set ctime, mtime, and atime, however they are actually referred to as CreationTime, LastAccessTime, and LastWriteTime.

The --preserve-ownership flag will query the user and group and store that in S3 as metadata.
On Windows this stores the SID, on linux this stores the uid/gid.

Please let me know if you have feedback on this PR.
Thanks!

@Ahuge Ahuge requested a review from a team as a code owner March 6, 2024 23:47
@Ahuge Ahuge requested review from igungor and sonmezonur and removed request for a team March 6, 2024 23:47
@Ahuge
Copy link
Author

Ahuge commented Mar 6, 2024

Linked to #532 as well

@Ahuge Ahuge force-pushed the ah/chore/update branch 2 times, most recently from 11724a7 to a0fc23a Compare March 7, 2024 00:42
@Ahuge
Copy link
Author

Ahuge commented Mar 7, 2024

Hold on this, I'll be rebasing and resubmitting

@Ahuge Ahuge closed this Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant