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!
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!