Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#109 --delete-removed does not honor the --exclude option

Malfunction
closed-out-of-date
nobody
s3cmd (118)
5
2015-02-09
2012-01-03
Sascha Ziemann
No

It is possible to exclude backups while doing an put-sync but it is not possible to preserver backups during an get-sync.

Example:

Upload and exclude backups:
s3cmd sync --exclude '*~' --delete-removed . s3://bucket

Try to download while preserving backups:
s3cmd sync --exclude '*~' --delete-removed s3://bucket .
deleted: ./Makefile~

As you can see the backups are removed.

Discussion

  • Matt Domsch
    Matt Domsch
    2015-02-09

    Exclude logic has been significantly reworked in the intervening years. please try with 1.5.2.

     
  • Matt Domsch
    Matt Domsch
    2015-02-09

    • status: open --> closed-out-of-date