samba-bugs at samba.org
2018-Aug-21 23:03 UTC
[Bug 13587] New: Add a --dry-run way to show destination for each item
https://bugzilla.samba.org/show_bug.cgi?id=13587
Bug ID: 13587
Summary: Add a --dry-run way to show destination for each item
Product: rsync
Version: 3.1.2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5
Component: core
Assignee: wayned at samba.org
Reporter: jidanni at jidanni.org
QA Contact: rsync-qa at samba.org
User very much wants to know where the files _will go_ before daring to try an
actual run.
He tries even
rsync -vv --dry-run --itemize-changes -avz x.y.z:dir1/dir2/backup/ backup/
but still there is no way to make it say
File x.y.z:dir1/dir2/backup/F1 will be copied to backup/F1
File x.y.z:dir1/dir2/backup/F2 will be copied to backup/F2
--
You are receiving this mail because:
You are the QA Contact for the bug.
Francis.Montagnac at inria.fr
2018-Aug-22 07:42 UTC
[Bug 13587] New: Add a --dry-run way to show destination for each item
Hi (sorry to only answer to the list) On Tue, 21 Aug 2018 23:03:56 -0000 just subscribed for rsync-qa from bugzilla via rsync wrote:> User very much wants to know where the files _will go_ before daring to try an > actual run.> He tries even > rsync -vv --dry-run --itemize-changes -avz x.y.z:dir1/dir2/backup/ backup/> but still there is no way to make it say > File x.y.z:dir1/dir2/backup/F1 will be copied to backup/F1 > File x.y.z:dir1/dir2/backup/F2 will be copied to backup/F2What about that: with this hierarchy: find dir1 dir3 dir1 dir1/dir2 dir1/dir2/backup dir1/dir2/backup/subdir dir1/dir2/backup/subdir/F3 dir1/dir2/backup/F2 dir1/dir2/backup/F1 dir3 dir3/backup dir3/backup/F4 one may say, for two source directories: rsync --dry-run --out-format='%i %f -> %n%L' -a dir1/dir2/backup/ dir3/backup/ backup/ cd+++++++++ dir1/dir2/backup/. -> ./ >f+++++++++ dir1/dir2/backup/F1 -> F1 >f+++++++++ dir1/dir2/backup/F2 -> F2 >f+++++++++ dir3/backup/F4 -> F4 cd+++++++++ dir1/dir2/backup/subdir -> subdir/ >f+++++++++ dir1/dir2/backup/subdir/F3 -> subdir/F3 Ref: man rsyncd.conf: log format %i an itemized list of what is being updated %f the filename (long form on sender; no trailing "/") %n the filename (short form; trailing "/" on dir) -- francis
samba-bugs at samba.org
2018-Aug-25 12:34 UTC
[Bug 13587] Add a --dry-run way to show destination for each item
https://bugzilla.samba.org/show_bug.cgi?id=13587 --- Comment #1 from Dan Jacobson <jidanni at jidanni.org> --- Thank you for https://lists.samba.org/archive/rsync/2018-August/031701.html I was hoping for something simple like $ cp -v m n 'm' -> 'n' i.e., like a theoretical cp --dry-run -v with no need for complicated %'s. -- You are receiving this mail because: You are the QA Contact for the bug.