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

sync: document --delete behavior for excluded files #4937

Merged
merged 1 commit into from
Sep 29, 2023

Commits on Sep 29, 2023

  1. sync: document --delete behavior for excluded files

    Running `aws s3 sync --delete ...` will not delete files that are
    excluded by filters. For example:
    
    ```bash
    aws s3 mb s3://sync-delete-exclude
    mkdir /tmp/sync-delete-exclude
    touch /tmp/sync-delete-exclude/{1,2,3,4}
    aws s3 sync /tmp/sync-delete-exclude s3://sync-delete-exclude
    # no files will be deleted:
    aws s3 sync s3://sync-delete-exclude /tmp/sync-delete-exclude \
      --exclude=3 --exclude=4 --delete --dryrun
    ```
    
    This is not immediately obvious from the documentation provided, and the
    interaction between exclusion filters and the `--delete` strategy flag
    should be explicitly stated.
    stevenkaras authored and kyleknap committed Sep 29, 2023
    Configuration menu
    Copy the full SHA
    cadaca9 View commit details
    Browse the repository at this point in the history