What does the trailing slash on src/ change?
rsync -a src/ backup/
- It copies src's contents, not src
- It copies only the top-level files
- It deletes files missing from src
- It follows symlinks inside src
With
Play Linux CLI ▸
src/, rsync syncs the directory's contents into backup; without it you get backup/src/.