<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <div class="s-prose js-post-body" itemprop="text">
      <p>All, </p>
      <p>  I want to follow the following procedure to restore
        /opt/local to previous date from time machine external drive, <br>
      </p>
      <p>but I get “Time Machine” can’t be modified or deleted because
        it’s required by macOS." error message after I click "restore"
        button.</p>
      <p> Do you know how to fix it? <br>
      </p>
      <p>Thanks,</p>
      <p>Tao<br>
      </p>
    </div>
    <div class="mt24">
      <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2023-04-30T03:07:01"></time>
        <div class="flex--item mr16" style="flex: 1 1 100px;">
          <div class="js-post-menu pt2" data-post-id="459300" data-post-type-id="2">
            <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap">
              <div class="flex--item"><a class="moz-txt-link-freetext" href="https://apple.stackexchange.com/questions/407890/how-to-backup-and-restore-opt-with-time-machine-on-macos-high-sierra/459300#459300">https://apple.stackexchange.com/questions/407890/how-to-backup-and-restore-opt-with-time-machine-on-macos-high-sierra/459300#459300</a>
              </div>
              <div class="flex--item">
                <p>Proceed as follows:</p>
                <ul>
                  <li>Open a Finder window.</li>
                  <li>Enter Time Machine.</li>
                  <li>Press <kbd>Shift</kbd><kbd>Command</kbd><kbd>G</kbd>
                    and enter <code>/</code> to display the root folder
                    of your drive.</li>
                  <li>Press <kbd>Shift</kbd><kbd>Command</kbd><kbd>.</kbd>
                    to display hidden folders. You should see <code>/opt</code>
                    now.</li>
                  <li>Browse the timeline on the right-hand side and
                    select the desired date.</li>
                  <li>Select <code>/opt</code>.</li>
                  <li>Press Restore. Note that Time Machine will
                    probably ask whether you want to keep a copy of your
                    current files.</li>
                </ul>
                <a href="https://apple.stackexchange.com/a/459300/494787" rel="nofollow" itemprop="url" class="js-share-link
                  js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: -1,
                  post_type: 2 })" data-controller="se-share-sheet
                  s-popover" data-se-share-sheet-title="Share a link to
                  this answer" data-se-share-sheet-subtitle="(Includes
                  your user id)" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start" aria-controls="se-share-sheet-2" data-action="
                  s-popover#toggle se-share-sheet#preventNavigation
                  s-popover:show->se-share-sheet#willShow
                  s-popover:shown->se-share-sheet#didShow" aria-expanded="false"></a></div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <p></p>
  </body>
</html>