Dangerous
rsync -avz --delete ./site/ deploy@example.com:/var/www/site/linux · bash · Nightmare
Mirrors a local directory to a live web root and deletes every remote file that is not present locally. It differs from the safe version of this command by one absent flag: without --dry-run, an incomplete or wrong local directory silently erases the site.
Signals to notice
- --delete removes remote files with no backup
- No dry run to preview the result
- Targets a live document root
Think you can spot these under time pressure?
Start Training