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

Rsync silently overwrite just-created file if copy multiple files with same name into same directory #625

Open
user202729 opened this issue Jul 17, 2024 · 0 comments

Comments

@user202729
Copy link

user202729 commented Jul 17, 2024

[a]$ mkdir b c
[a]$ touch b/file c/file
[a]$ tree .
.
├── b
│   └── file
└── c
    └── file

2 directories, 2 files
[a]$ cp b/file c/file ./
cp: will not overwrite just-created './file' with 'c/file'
[a]$ rsync b/file c/file ./  # no warning printed!
[a]$

I think it would be a good idea if rsync gives an error, or at least a warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant