Difference between revisions of "Time Machine Backups on sparse ZVOL"

From OpenZFS on OS X
Jump to: navigation, search
(Created page with "== Creating a thin provisioned ZVOL for time machine backups == === Unencrypted === <code> sudo zfs create -s -V 500G zpool/ZVOL/TimeMachine DISK=$(ioreg -trn "ZVOL z...")
 
(No difference)

Latest revision as of 22:40, 19 November 2019

Creating a thin provisioned ZVOL for time machine backups

Unencrypted

   sudo zfs create -s -V 500G zpool/ZVOL/TimeMachine
   DISK=$(ioreg -trn "ZVOL zpool/ZVOL/TimeMachine Media" | awk -F'"' '/BSD Name/ {print $4;}')
   sudo diskutil cs create TimeMachine $DISK
   LVG_UUID=$(diskutil cs info ${DISK}s2 | grep -E "Parent LVG UUID:" | sed -E 's/.*\:\s*([A-F0-9-]*)/\1/')
   sudo diskutil cs createVolume $LVG_UUID jhfs+ TimeMachine 100%
   sudo tmutil setdestination -a /Volumes/TimeMachine

Encrypted

   sudo zfs create -s -V 500G zpool/ZVOL/TimeMachine
   DISK=$(ioreg -trn "ZVOL zpool/ZVOL/TimeMachine Media" | awk -F'"' '/BSD Name/ {print $4;}')
   sudo diskutil cs create TimeMachine $DISK
   LVG_UUID=$(diskutil cs info ${DISK}s2 | grep -E "Parent LVG UUID:" | sed -E 's/.*\:\s*([A-F0-9-]*)/\1/')
   sudo diskutil cs createVolume $LVG_UUID jhfs+ TimeMachine 100% -stdinpassphrase
   sudo tmutil setdestination -a /Volumes/TimeMachine