Skip to content

aws s3 sync function re-uploading all the files in the Pronet network #108

Description

@kcho

aws s3 sync SOURCE s3://TARGET/TARGET_DIR has been re-uploading all the files under PHOENIX. This issue can be replicated by creating a folder by

cd /mnt/ProNET/Lochness/PHOENIX
aws s3 sync ${PWD}/GENERAL s3://prod-ampscz-pronet/PHOENIX_ROOT_PRONET/GENERAL

Repeating the aws s3 sync right after the previous run, does not re-upload files, but after about a minute from the previous aws s3 sync run, it re-uploads files with no-change.

stat and sha1sum have been checked in between aws s3 sync runs, to make sure there is no change in the file being re-uploaded.

(base) kc2357@PronetProd:/mnt/ProNET/Lochness/PHOENIX/GENERAL/PronetYA$ stat PronetYA_metadata.csv
  File: PronetYA_metadata.csv
  Size: 410             Blocks: 8          IO Block: 1048576 regular file
Device: 36h/54d Inode: 14641028700104065786  Links: 1
Access: (0774/-rwxrwxr--)  Uid: ( 1001/    zt84)   Gid: ( 1004/  pronet)
Access: 2022-07-13 18:01:48.386542000 +0000
Modify: 2022-06-29 19:02:07.722772000 +0000
Change: 2022-06-29 19:02:07.722772000 +0000
 Birth: -
(base) kc2357@PronetProd:/mnt/ProNET/Lochness/PHOENIX/GENERAL/PronetYA$ sha1sum PronetYA_metadata.csv
409392e84761d6612a80d8d6d6b27e8352a1deda  PronetYA_metadata.csv
(base) kc2357@PronetProd:/mnt/ProNET/Lochness/PHOENIX/GENERAL/PronetYA$

This behaviour is also noted here
aws/aws-cli#5216

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions