<div dir="ltr">Can you confirm that this doesn't work for some reason?  (What's the reason?)<div><br></div><div>  (cd $SOURCE_DIR && tar cf -) | (cd $DEST_DIR && tar xf -)</div><div><br></div><div>Also, cpio is surprisingly useful in situations like this, because you can use the find command to feed it the names of the things you want to transfer.</div><div><br></div><div>Also also, I cannot help but mention that if the stuff being transferred has tons of huge sparse files, BSD tar is crucial.  Contrary to docs, rsync doesn't handle sparse files the way you'd hope.  (Not the versions I tried last year, anyway.)</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 11, 2018 at 3:04 PM, Jim Kinney via Ale <span dir="ltr"><<a href="mailto:ale@ale.org" target="_blank">ale@ale.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Imagine a giant collection of files, several TB, of unknown directory names and unknown directory depths at any point. From the top of that tree, you need to cd into EVERY directory, find the symlinks in each directory and remake them in a parallel tree on the same system but in a different starting point. Rsync is not happy with the relative links so that fails as each link looks to be relative to the location of the process running rsync.</div><div><br></div><div>It is possible given the source of this data tree that recursive, looping symlinks exist. That must be recreated in the new location.</div><div><br></div><div>It looks like a find to list all symlinks in the entire tree then cd to each final location to recreate is best. That can be sped up with running multiple processes splitting the link list into sections.</div><div><br></div><div>Better ideas? </div><span class="HOEnZb"><font color="#888888"><div><span><pre><pre>-- <br></pre>James P. Kinney III

Every time you stop a school, you will have to build a jail. What you
gain at one end you lose at the other. It's like feeding a dog on his
own tail. It won't fatten the dog.
- Speech 11/23/1900 Mark Twain

<a href="http://heretothereideas.blogspot.com/" target="_blank">http://heretothereideas.<wbr>blogspot.com/</a>
</pre></span></div></font></span></div><br>______________________________<wbr>_________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/<wbr>listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/<wbr>listinfo</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">  Ed Cashin <<a href="mailto:ecashin@noserose.net" target="_blank">ecashin@noserose.net</a>></div></div>
</div>