3 ms·
Was there already a /tmp/services directory on the dest? One of the biggest points of confusion with rsync is how directories and trailing slashes are handled.
by genxy 5mo ago
Was there already a /tmp/services directory on the dest?
One of the biggest points of confusion with rsync is how directories and trailing slashes are handled.
- Panino 5mo ago> Was there already a /tmp/services directory on the dest? No. And just to make sure, I ran a quick 'rm -rf /tmp/services' on the remote host, then re-ran openrsync on the client. Same result. This is OpenBSD 7.9 on both sides. And I 100% agree about trailing slashes.
- anyfoo 5mo agoI hear that a lot, but I familiarized myself with it once and ever since it makes a lot of sense to me. Source ending in “/“: You want what’s inside. Source not ending in “/“: You want the thing (i.e. directory itself). For the destination, it does not matter whether it ends in “/“ or not, but for consistency I like adding a “/“ anyway (I want to put thing inside the directory).
- linsomniac 5mo agoYes, the nice thing about dest having a trailing "/" is that if it exists and is NOT a directory, you are alerted right away.
- eichin 5mo agoIt's a big source of confusion with cp. One of the UI reasons to use rsync (for mundane non-remote copying) is that it doesn't do different things based on what's present on the target.