Sub topic 2
Encrypting and Restoring Time Machine Backups
This chapter assumes you can use Finder, know what an external drive and network share are, and can run simple commands in Terminal. Menu names vary slightly between macOS versions.
Encrypting your backups
Encryption changes backup data into a form that cannot be read without a password. It protects files if someone steals the backup disk.
When you select a disk in System Settings > General > Time Machine, enable Encrypt Backup before using it. Choose a strong password and store it in a password manager. macOS cannot recover this password for you. Without it, the backup may be unusable.
A network destination can also use encryption, but the setup depends on the network storage system. Confirm that the server supports encrypted Time Machine backups.
Excluding items to save space
An exclusion tells Time Machine not to copy a folder. Exclude reproducible data, such as caches, virtual-machine images, or temporary downloads. Do not exclude your only copy of important data.
In Time Machine settings, add folders under Options. You can also use Terminal:
tmutil addexclusion ~/Downloads/large-files
tmutil isexcluded ~/Downloads/large-filesThe second command confirms whether the path is excluded.
Schedule and retention: how backups age out
Automatic backups normally run about hourly. Time Machine keeps recent hourly backups, then keeps fewer daily and weekly versions. When the destination becomes full, it deletes the oldest versions first. This process is called thinning.
Retention is therefore space-based, not a permanent archive. A large destination keeps more history. Deleting a current file does not immediately delete its older backup versions.
Local snapshots on your Mac
When the backup disk is unavailable, macOS may create local snapshots on the startup disk. A snapshot is a point-in-time view of files, stored using APFS. It can help you recover a recently changed file before the external disk reconnects.
tmutil listlocalsnapshots /Snapshots use available space and are removed automatically when macOS needs that space.
Restoring files and folders
Open the folder that previously contained the item. Choose Enter Time Machine from the Time Machine menu, move through the timeline, select the item, and choose Restore. macOS returns it to its original location. If a file with that name exists, choose whether to keep, replace, or retain both copies.
Exercise
Why should you avoid excluding a folder that contains the only copy of important data?
Show answer
Time Machine will have no backup copy of that data, so a disk failure or accidental deletion could make it unrecoverable.