find /mnt/foo/* -maxdepth 0 -print -exec rsync -an `realpath {}`
/mnt/bar/ \;
(realpath eliminates the trailing slashes)
On 8/3/23 22:27, Fourhundred Thecat via rsync wrote:
Hello,
I am copying /mnt/foo to /mnt/bar/
rsync --info=name1,del2 -rl /mnt/foo /mnt/bar/
/mnt/foo contains deep
> On 2023-08-04 06:13, Perry Hutchison wrote:
Perry Hutchison via rsync wrote:
On second thought, that grep will match any directory name having 3
*or more* levels. This:
rsync --info=name1,del2 -rl /mnt/foo /mnt/bar/ | egrep
'^/[^/]*/[^/]*/[^/]*/$'
should match only those with exactly