Accident caused by --remove-source-files #193
huangyingw
started this conversation in
General
Replies: 1 comment
-
Only in your own brain. When prepping an rsync, it's often good to use option |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
when I used --remove-source-files in following way:
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?
Beta Was this translation helpful? Give feedback.
All reactions