3 ms·
rsync -r ./ ~/Documents/ Why would I even need to use *, if I wanted all files from a directory?
by tryauuum 6y ago
rsync -r ./ ~/Documents/
Why would I even need to use *, if I wanted all files from a directory?
- jcrawfordor 6y agoBecause rsync semantics around the trailing slash are a little confusing and unusual, it's pretty common IME for people to intentionally explicitly define paths to the file with rsync, in order to avoid having to look up which way they need to write the target path.
- 0x0 6y agoUse a dot after the trailing slash and there is less confusion. "Blabla/." means "(everything) in the Blabla directory". Fairly self-explanatory/un-confusing and no need for "*"