rsync mnemonic
rsync mnemonic
Posted Apr 26, 2019 21:43 UTC (Fri) by naptastic (guest, #60139)In reply to: OpenSSH 8.0 released by karkhaz
Parent article: OpenSSH 8.0 released
The choice seemed arbitrary to me until I came up with a mnemonic for it: Trailing slash means "the contents of the directory," and no trailing slash means "the directory as a single thing." Somehow my brain also maps that to pointers versus values:
rsync(src, dest); /* one item, named 'src', will be created in dest */ rsync(*src, dest); /* everything under 'src' will be created in dest */I don't know if that helps or even makes sense to anyone else.
