-->

2018/11/02

APFSのSnapshot (OSX 10.13)

$ tmutil snapshot で作るAPFSのSnapshot / Local Time Machine snapshot はTimeMachine起動すると/Volumes下にマウントするみたい
なかなかカシコイ…但し, snapshot( tmutil snapshot ) と Local Time Mahine snapshot( tmutil localsnapshot )は区別されていないみたい
Localsnapshot

ref.
コレ手動でやるなら

$ tmutil mountlocalSnapshots /
Mounted local snapshots: (
"/Volumes/com.apple.TimeMachine.localsnapshots/Backups.backupdb/hoge/2018-11-02-022235/hogehoge",
"/Volumes/com.apple.TimeMachine.localsnapshots/Backups.backupdb/hoge/2018-10-31-215500/hogehoge"
)

でマウント↓

$ ls -la /Volumes/ | grep com.apple.TimeMachine.localsnapshots
drwxr-xr-x+ 3 root wheel 96 11 2 02:24 com.apple.TimeMachine.localsnapshots

アンマウントは

$ tmutil unmountlocalSnapshots /

でね..

….あとAPFS系は以下にオモシロイモノが,,,

$ ls -l /System/Library/Filesystems/apfs.fs/Contents/Resources
-rwxr-xr-x 1 root wheel 552432 7 4 22:02 apfs.util
-rwxr-xr-x 1 root wheel 559552 7 4 22:02 apfs_invert
-rwxr-xr-x 1 root wheel 1310432 7 4 22:03 apfs_preflight_converter
-rwxr-xr-x 1 root wheel 29456 7 4 19:55 apfs_stats
-rwxr-xr-x 1 root wheel 736528 7 4 22:02 fsck_apfs
-rwxr-xr-x 1 root wheel 1303440 7 4 22:02 hfs_convert
-rwxr-xr-x 1 root wheel 34672 7 4 19:55 mount_apfs
-rwxr-xr-x 1 root wheel 584272 7 4 22:02 newfs_apfs
-rwxr-xr-x 1 root wheel 545936 7 4 22:02 slurpAPFSMeta

フォロワー