mirror of
https://github.com/sunknudsen/privacy-guides.git
synced 2025-02-22 16:53:56 +00:00
Added Time Machine guide
This commit is contained in:
parent
1dc99978f2
commit
49d530d3a9
@ -0,0 +1,97 @@
|
||||
<!--
|
||||
Title: How to use Time Machine and APFS snapshots on macOS
|
||||
Description: Learn how to use Time Machine and APFS snapshots on macOS.
|
||||
Author: Sun Knudsen <https://github.com/sunknudsen>
|
||||
Contributors: Sun Knudsen <https://github.com/sunknudsen>
|
||||
Reviewers:
|
||||
Publication date: 2021-04-02T17:40:53.608Z
|
||||
Listed: true
|
||||
-->
|
||||
|
||||
# How to use Time Machine and APFS snapshots on macOS
|
||||
|
||||
## Time Machine setup guide
|
||||
|
||||
### Step 1: exclude folders from Time Machine
|
||||
|
||||
> Heads-up: excluded folders vary depending on use case.
|
||||
|
||||

|
||||
|
||||
### Step 2: format Time Machine disk as “Mac OS Extended (Journaled, Encrypted)” using “Disk Utility”
|
||||
|
||||
> WARNING: DATA ON TIME MACHINE DISK WILL BE PERMANENTLY DELETED.
|
||||
|
||||

|
||||
|
||||
### Step 3: enable “Encrypt Backup Disk” and click “Use as Backup Disk”
|
||||
|
||||

|
||||
|
||||
### Step 4: confirm encryption is enabled and enable “Show Time Machine in menu bar”
|
||||
|
||||

|
||||
|
||||
Encrypted
|
||||
|
||||
👍
|
||||
|
||||
## Time Machine usage guide
|
||||
|
||||
### Create backup
|
||||
|
||||
Click “Time Machine” menu bar icon and then “Back Up Now” or run `tmutil startbackup`.
|
||||
|
||||
### Delete specific backup
|
||||
|
||||
Heads-up: use `tmutil listbackups` to list backups.
|
||||
|
||||
```shell
|
||||
sudo tmutil delete "/Volumes/LaCie/Backups.backupdb/Sun’s MacBook Pro/2021-04-05-082332"
|
||||
```
|
||||
|
||||
## APFS snapshot usage guide
|
||||
|
||||
### Create local APFS snapshot
|
||||
|
||||
```shell
|
||||
tmutil localsnapshot
|
||||
```
|
||||
|
||||
### List local APFS snapshots
|
||||
|
||||
```shell
|
||||
tmutil listlocalsnapshots /
|
||||
```
|
||||
|
||||
### Mount local read-only APFS snapshot
|
||||
|
||||
Heads-up: use `umount /tmp/snapshot` to unmount snapshot.
|
||||
|
||||
Replace `com.apple.TimeMachine.2021-04-05-082935.local` with snapshot from [List local APFS snapshots](#list-local-apfs-snapshots).
|
||||
|
||||
```shell
|
||||
mkdir -p /tmp/snapshot
|
||||
mount_apfs -s com.apple.TimeMachine.2021-04-05-082935.local / /tmp/snapshot
|
||||
open /tmp/snapshot
|
||||
```
|
||||
|
||||
### Restore local APFS snapshot
|
||||
|
||||
Restart computer and press `cmd+r` to boot to recovery mode.
|
||||
|
||||
Select “Restore From Time Machine Backup”, then “Macintosh HD”, choose local snapshot, click “Continue” and “Continue” again to confirm.
|
||||
|
||||
### Delete specific local APFS snapshot
|
||||
|
||||
> Heads-up: use `tmutil listlocalsnapshotdates` to list local snapshot dates.
|
||||
|
||||
```
|
||||
tmutil deletelocalsnapshots 2021-04-05-082935
|
||||
```
|
||||
|
||||
### Delete all local APFS snapshot
|
||||
|
||||
```
|
||||
tmutil deletelocalsnapshots /
|
||||
```
|
BIN
how-to-use-time-machine-and-apfs-snapshots-on-macos/confirm-encryption.png
Executable file
BIN
how-to-use-time-machine-and-apfs-snapshots-on-macos/confirm-encryption.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 208 KiB |
BIN
how-to-use-time-machine-and-apfs-snapshots-on-macos/enable-time-machine.png
Executable file
BIN
how-to-use-time-machine-and-apfs-snapshots-on-macos/enable-time-machine.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 86 KiB |
BIN
how-to-use-time-machine-and-apfs-snapshots-on-macos/exclude.png
Executable file
BIN
how-to-use-time-machine-and-apfs-snapshots-on-macos/exclude.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 158 KiB |
BIN
how-to-use-time-machine-and-apfs-snapshots-on-macos/format.png
Executable file
BIN
how-to-use-time-machine-and-apfs-snapshots-on-macos/format.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 230 KiB |
Loading…
x
Reference in New Issue
Block a user