<html><head></head><body>It's actually looking like a far simpler problem than originally surmised.<br>
<br>
Originally I thought the bad symlinks were due to a relative path being outside of the rsync scope of operation. It's looking more like the original source just has tens of thousands of dangling symlinks that were created by mistakes (mostly students) and resolved/cleaned before the backup occured.<br>
<br>
Find is working. So is the symlinks command.<br><br><div class="gmail_quote">On January 12, 2018 12:21:49 AM EST, Steve Litt <slitt@troubleshooters.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">On Thu, 11 Jan 2018 15:04:33 -0500<br>Jim Kinney via Ale <ale@ale.org> wrote:<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> Imagine a giant collection of files, several TB, of unknown directory<br> names and unknown directory depths at any point. From the top of that<br> tree, you need to cd into EVERY directory, find the symlinks in each<br> directory and remake them in a parallel tree on the same system but in<br> a different starting point. Rsync is not happy with the relative links<br> so that fails as each link looks to be relative to the location of the<br> process running rsync.<br></blockquote><br>I can't exactly visualize what you want to do with the discovered<br>symlinks, but my first thought would be to write a treewalker program.<br>It's pretty easy to write a C tree-walker program that performs a<br>specific action upon encountering a symlink. Because your wrote it in<br>C, it will be as fast as its algorithm. Depth-first tree walker<br>algorithms are pretty darn fast.<br><br>HTH,<br><br>SteveT<br><br>Steve Litt<br>January 2018 featured book: Troubleshooting: Why Bother?<br><a href="http://www.troubleshooters.com/twb">http://www.troubleshooters.com/twb</a><br></pre></blockquote></div><br>
-- <br>
Sent from my Android device with K-9 Mail. All tyopes are thumb related and reflect authenticity.</body></html>