A person scanning a runbook may copy the first command on screen. Put the dry run and the file-writing command under separate headings, with a check between them.

Preview in a scratch folder

Make source/ and staging/ inside a disposable folder. Put briefing.txt in source and leave staging empty. Run:

rsync -av --dry-run source/ staging/

A disposable fixture shows briefing.txt in source and an empty staging folder.

Example setup. Use a scratch folder for both commands.

Check that the preview names briefing.txt and that staging is still empty. Read the destination carefully before continuing.

Copy only after the preview matches

rsync -av source/ staging/

Open staging/briefing.txt and confirm its contents. The trailing slash on source/ in this example copies its contents into staging. Keep the same paths and flags between the two commands apart from removing the dry-run flag.

The check compares empty staging after the preview with briefing.txt present after the copy.

Example result. Move to the write command only when the preview matches the plan.

The rsync manual’s dry-run option.