Skip to content
Pinter Computing

Knowledge Base for IT Professionals, Teachers, and Astronauts

Pinter Computing

Knowledge Base for IT Professionals, Teachers, and Astronauts

  • Home
  • Programming
  • DevOps
  • Project Management
  • Software and Hardware
  • Miscellaneous
  • Egyebek
  • About
  • Experience
  • Education
  • Contact
  • Home
  • Programming
  • DevOps
  • Project Management
  • Software and Hardware
  • Miscellaneous
  • Egyebek
  • About
  • Experience
  • Education
  • Contact
Close

Search

Home/Knowledge Base/How to restore hidden and protected files from Time Machine backups
Knowledge Base

How to restore hidden and protected files from Time Machine backups

By Laszlo Pinter
October 27, 2022 3 Min Read
0

Time Machine backs up all necessary files to restore your computer in case of a disaster. Hidden directories are backed up, but you need root (sudo) permission to access some of them. The Time Machine restore process cannot restore protected files and directories one-by-one, only when you restore the entire machine backup.

This table shows the locations of some important files and directories on the Time Machine drive:

ItemLocationLocation on the Time Machine drive
cron jobs/var -> private/var/at/tabsBackups.backupdb/MY_COMPUTER_NAME/MY_BACKUP_DATE/Macintosh HD – Data/private/var/at/tabs
Google Chrome bookmarks/Users/MY_USER_NAME/Library/Application Support/Google/Chrome/Default/Volumes/Time Machine 1 Passport/Backups.backupdb/MY_COMPUTER_NAME/MY_BACKUP_DATE/Macintosh HD – Data/Users/MY_USER_NAME/Library/Application Support/Google/Chrome/Default

To view files in hidden directories with access restrictions on the Time Machine

  • Connect the Time Machine drive to your computer
  • In Finder navigate to the parent of the protected directory
  • Right-click the parent directory, and select Services, New Terminal at Folder
  • In the terminal execute
    pwd
    to get the current working directory
  • In the terminal execute
    sudo -i
    and enter your admin password
  • Copy the output of the pwd command to the clipboard
  • Change the directory by executing the command
    cd "/Volumes... "
    ( enclose the path in double quotes as it contains spaces )
  • Change into the protected directory to access the files

To restore files to the computer

When we access protected files on the Time Machine we use the “root” account to access them. If we copy the file to the computer the owner becomes “root” and the applications running under our regular account cannot access them.

To make the files accessible to the regular account we need to change the file permissions after copying them to the computer.

Restore Google Chrome bookmarks from Time Machine backup

  • Start Google chrome and save one bookmark to create the Bookmarks file with the correct ownership.
  • Start a terminal ( terminal #1 ) and open the time machine backup with “sudo” rights ( see table above ) to get the backup file location
  • Start another terminal ( terminal #2 ) and open the folder on the computer with “sudo” rights ( see table above )
  • In terminal #2 execute the command to copy and overwrite the Bookmarks file
    cp "/Volumes/Time Machine 1 Passport/Backups.backupdb/MY_COMPUTER_NAME/MY_BACKUP_DATE/Macintosh HD - Data/Users/MY_USER_NAME/Library/Application Support/Google/Chrome/Default/Bookmarks" .
    ( Double quotes are needed, as the path contains spaces, and don’t forget the dot at the end of the command )
  • Close Google Chrome and start it again to re-read the Bookmarks file.
Author

Laszlo Pinter

Follow Me
Other Articles
Previous

Chef workstation configuration

Next

Configure cron jobs in macOS

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

Last Changes

  • DevOps Engineering part 1. (Mac) - Make your Macintosh easier to use June 25, 2026
  • Japan travel tips June 22, 2026
  • How to stop the rain and snow in Cities: Skylines II June 20, 2026
  • Cities: Skylines II Developer Mode June 20, 2026
  • 'CSII_MANAGEDPATH' has incorrect path(s) when building Cities: Skylines II mod June 20, 2026

Tags

.NET .NETcore 3Dprinting ASP.NET Core AutodeskInventor AWS C# Chef cloud DevOps Docker EntityFramework Games Git Go iOS iPad iPhone iPod Java Kubernetes Linux MacOSX MSSQL MVC Node.js Packer PowerShell Python RDS RightScale Ruby security Splunk TeamCity Terraform TestKitchen Tomcat Ubuntu Vagrant VirtualBox VisualStudio Windows WordPress Xcode

Recent Comments

  • Zengei László on MyHeritage családfa exportálása és küldése emailben
  • Raúl Castillo on DynDns update error
  • MICHAEL on Windows Media Player 12 cannot find the album information
  • Nargis on Configure Epson ET-3850 scanning on Windows 11
  • Venczelné Zemen Erika on Delta S2302 termosztát programozása

–

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright 2026 — Pinter Computing. All rights reserved.