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 #534

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

Commits on Nov 2, 2022

  1. Create a way to preserve timestamps

    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 committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    a7fd7da View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    af9099c View commit details
    Browse the repository at this point in the history