System Management

An administrator has an existing nightly job that runs rsync -av --delete /srv/data/ bk01:/srv/backup/data/. Before the next run, the administrator wants to see which files would be copied and which would be removed on bk01, without changing anything. Which command does this?

Show the answer

Correct answerC. rsync -avn --delete /srv/data/ bk01:/srv/backup/data/

The -n (--dry-run) option makes rsync report what it would transfer and delete without making changes. --progress only displays transfer progress while the sync still runs, so deletions would happen; -c changes comparison to checksums and --partial keeps interrupted files, neither of which previews.