← Learn
Safe
rsync -avz --delete --dry-run ./site/ deploy@example.com:/var/www/site/

linux · bash · Nightmare

Shows exactly which remote files a mirroring deploy would add, change, and delete, without touching any of them. --delete is genuinely destructive, and --dry-run is the only thing standing between this command and the dangerous version of itself.

Think you can spot these under time pressure?

Start Training

More File System