2 ms·
About 10 years ago, I was earning my CS degree, and my Intro to Unix teacher was showing us how to use rsync. He somehow made an error that synced an empty dir
by Sohcahtoa82 5y ago
About 10 years ago, I was earning my CS degree, and my Intro to Unix teacher was showing us how to use rsync. He somehow made an error that synced an empty directory to his home directory, deleting everything from his home directory.
The lesson I learned in that class was to not use rsync, sadly.
- quesera 5y ago> The lesson I learned in that class was to not use rsync, sadly. This is a poor lesson! If your TA tripped on the stairs and broke their nose, would you swear off stairs forever? rsync is an essential tool for anyone who works with files in the UNIX world. There are other options, sometimes, but rsync is almost-always present, and does almost-everything you usually want. Any tool can be used incorrectly, but rsync is easy and follows the same pattern as most other UNIX file copy tools. If you can use cp, you can use rsync safely.