3 ms·
My pet peeve grief with rsync is that I have to double check the man page for the trailing slash rule every time I use it. Otherwise I love it.
by johnchristopher 8y ago
My pet peeve grief with rsync is that I have to double check the man page for the trailing slash rule every time I use it. Otherwise I love it.
- ggm 8y agoI get hit by that one. but, tbf Linux and BSD differ on the behaviour of cp -r with ./thing/ and ./thing -I found references to ./thing/. worked on both. I also find the --include --exclude behaviour very confusing. does --include=* outweigh --exclude=thing and vice-versa and does this reset left to right?
- pgeorgi 8y agoThat's why I have cpdup (https://github.com/DragonFlyBSD/cpdup https://github.com/DragonFlyBSD/cpdup) around on all systems I use. No need to worry about rsync's special syntax.
- mcbain 8y agoMy shell history is sure to show every use of ‘rsync <whatever>’ to be preceded by ‘rsync -n <whatever>’ to make sure I have the paths correct.