AnswerBun.com

How to backup and restore /opt with Time Machine on macOS High Sierra?

I have an old MacBook Pro running High Sierra. Time Machine backs up /Users but not /opt.

The Time Machine preferences let me exclude directories, but does not let me add directories that I want to back up.

How can I get Time Machine to backup /opt on High Sierra and how can I restore it?

Ask Different Asked by Nelson on December 31, 2020

1 Answers

One Answer

How can I get Time Machine to backup /opt on High Sierra?

You don't need to do anything special to back it up: Time Machine backs up all folders on your Mac.

However, you may get the impression that /opt (and other folders like /bin or /cores, as you mention in your comment) are not included because the Finder hides those folders by default: enter image description here

But don't let the Finder mislead you:

  • either press ShiftCommand. to let the Finder display all folders (press ShiftCommand. again to hide them),
  • or open Terminal, list the contents of the backup folder and you will see that everything is there: enter image description here

How can I restore /opt?

Proceed as follows:

  • Open a Finder window.
  • Enter Time Machine.
  • Press ShiftCommandG and enter / to display the root folder of your drive.
  • Press ShiftCommand. to display hidden folders. You should see /opt now.
  • Browse the timeline on the right-hand side and select the desired date.
  • Select /opt.
  • Press Restore. Note that Time Machine will probably ask whether you want to keep a copy of your current files.

Answered by jaume on December 31, 2020

Add your own answers!

Related Questions

Create a disk image for recovery

1  Asked on January 26, 2021 by ispiro

         

Unmount Volume on User Logout

2  Asked on January 24, 2021 by haravikk

       

How do I reduce the delay when unlocking my Mac?

1  Asked on January 23, 2021 by freeviruses

     

iPhone: share with instagram

10  Asked on January 22, 2021 by user62304

     

macOS High Sierra: Create Windows bootable Usb

6  Asked on January 21, 2021 by yannisalexiou

       

iPhone 6- Boot Loop- Error 9

0  Asked on January 20, 2021 by salient24

         

Reattaching microphone on iMac 21.5″ 2017

0  Asked on January 17, 2021 by orun

     

HTTP connections by neo4j clients blocked

0  Asked on January 16, 2021 by oscar-serna

   

How do I force a “Waiting” file to upload to iCloud?

11  Asked on January 15, 2021 by dan-j

 

Changing MAC Address and undoing changes

1  Asked on January 14, 2021 by zy-mazza

     

MacBook Pro 2020 Fan Issues

1  Asked on January 13, 2021 by ifandonlyif

         

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved.