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

Implement a --preserve-ownership flag #6

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Ahuge
Copy link
Owner

@Ahuge Ahuge commented Nov 4, 2022

No description provided.

Ahuge added 2 commits November 2, 2022 11:50
The `--preserve-timestamp` flag will set metadata on the s3 objects and
then update the files on disk during a download.

If the `--preserve-timestamp` flag is passed during an upload the following metadata keys will be set:
  - x-amz-meta-file-ctime
  - x-amz-meta-file-mtime
  - x-amz-meta-file-atime

If the `--preserve-timesamp` flag is passed during a download, s5cmd
will attempt to modify the created files on disk.
  **There doesn't appear to be a way to change the created date on Linux
@Ahuge Ahuge force-pushed the ah/feature/preserve-ownership branch 3 times, most recently from c50f6af to 33d9522 Compare November 7, 2022 16:17
Ahuge added 2 commits November 9, 2022 12:23
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.
@Ahuge Ahuge force-pushed the ah/feature/preserve-ownership branch from 33d9522 to 558dc3c Compare November 9, 2022 20:24
The preserve flags don't make sense in the context of an rm command.
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