Skip to content

s3cmd sync copies all files, even if they are unchanged #1372

@rungitringit

Description

@rungitringit

I'm attempting to create a backup solution. It needs to be capable of incremental copies using s3cmd sync and to preserve file permissions. (I can ignore the fact that directory permissions aren't preserved at the moment). I'm writing from Linux systems to an S3 bucket in to different "folders" in the one backup bucket.

Unfortunately in all my testing the s3cmd sync command copies every single file every time, even if the file has not changed in any way. This is not what I had expected.

The --skip-existing switch skips all existing files, even if they have changed. (Oddly the debug shows that s3cmd does all the slow md5sums checks first and then ignores them.)

How can I use s3cmd to get an rsync-like sync from Linux to an s3 bucket please?

EDIT: I'm currently using s3cmd version 2.2.0 from the Ubuntu repos, but will update if there are relevant bugfixes. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions