Re: use absolute paths in transfer list

2022-02-20 Thread Fourhundred Thecat via rsync

> On 2022-02-18 03:07, Wayne Davison wrote:

On Wed, Feb 16, 2022 at 2:57 AM Fourhundred Thecat via rsync
mailto:rsync@lists.samba.org>> wrote:

rsync -a --del --out-format='/%f%L' /path/one/ /path/two/ /dest/path/


that works perfectly.

thank you !

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: use absolute paths in transfer list

2022-02-17 Thread Wayne Davison via rsync
On Wed, Feb 16, 2022 at 2:57 AM Fourhundred Thecat via rsync <
rsync@lists.samba.org> wrote:

> how can I print the full paths?
>

If you're pushing files (which includes a local copy), putting "%f" into
--out-format gets you the full specified path for the source files.  It
likes to strip the leading slash, so I'll toss that into the format and
assume you'll always use absolute paths:

rsync -a --del --out-format='/%f%L' /path/one/ /path/two/ /dest/path/

If you're pulling files, you could switch to a daemon-over-ssh setup
(creating a remote ~/rsyncd.conf file with a single module in it) and
specify a log directive with %f in it.  I believe that gets you a log file
of the full path names, but not any extra path info in the output.

Of course, if you have a single source, you could fudge the info:

rsync -a --del --out-format='/one/path/%n%L' host:/one/path/ /dest/path/

..wayne..
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


use absolute paths in transfer list

2022-02-16 Thread Fourhundred Thecat via rsync

Hello

I have files in /source/A/B/C and I am syncing them to /dest/A/

rsync --info=name1,del2 -r /source/A/ /dest/A/

the transfer list is printed as relative paths:

B/C

instead of full path:

/source/A/B/C

how can I print the full paths?

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html