Bug 5404 - rsync --dry-run should show where files will go
rsync --dry-run should show where files will go
Product: rsync
Classification: Unclassified
Component: core
Other Linux
: P3 normal
: ---
Assigned To: Wayne Davison
Rsync QA Contact
Depends on:
  Show dependency treegraph
Reported: 2008-04-18 21:13 UTC by Noah Levitt
Modified: 2008-07-28 20:35 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Noah Levitt 2008-04-18 21:13:02 UTC
Multiple times I've run rsync -n (aka --dry-run) to check if the files I'm transferring are gonna go where I want them to, to make sure I've got trailing slashes in the right spots and such. But it does not tell me, which is very frustrating.
Comment 1 Wayne Davison 2008-04-18 21:24:58 UTC
I'd suggest using -i (--itemize-changes) with -n.
Comment 2 Noah Levitt 2008-04-25 19:10:06 UTC
I hope reopening the bug doesn't violate etiquette. But -i gives me little satisfaction. As the man page says, the output is utterly cryptic, and amongst the zillions of options, -i is very obscure. Why not have -n print something like this, kind of like "/bin/cp -v", for each file:

/source/path/file -> dest-host:/dest/path/file
Comment 3 Wayne Davison 2008-04-26 01:50:47 UTC
Sorry, I wouldn't like such an output.  --dry-run tells rsync to just not do the copy, not become overly repetitive in its output strings.