Skip to content

Accident caused by --remove-source-files #190

@huangyingw

Description

@huangyingw

when I used --remove-source-files in following way:

rsync --remove-source-files source_dir/ target_dir/

there is a great danger:
if I Accidentally run it with source_dir === target_dir, or source_dir is just a symbol link to target_dir,
then both the source_dir and target_dir would be clean, empty, all the Contents under these dir would be gone.

Is there any pre-check for --remove-source-files, to prevent this case?

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