Skip to content

Instantly share code, notes, and snippets.

@GrahamWalters
GrahamWalters / script.sh
Created December 17, 2020 12:47
TimeMachine backup on APFS Volume
# Create a Journaled HFS+ disk image on the drive
# Size is limited to 250GB but you can change that
# Volume name is TM
# The image name is TimeMachine
# Note this image is not encrypted. Save this image to an encrypted volume.
hdiutil create -size 250gb -layout GPTSPUD -fs "Journaled HFS+" -volname "TM" -type SPARSEBUNDLE -nospotlight -tgtimagekey sparse-band-size=262144 /Volumes/T7/TimeMachine.sparsebundle
# Mount the disk image and then set TimeMachine to use the new disk
sudo tmutil setdestination /Volumes/TM/
-- See the most up to date version here where it says "Download the mrc-converter-suite zip archive" https://discussions.agilebits.com/discussion/30286/mrcs-convert-to-1password-utility/p1
--
-- Exports Safari's saved passwords to a CSV file formatted for use with the convert_to_1p4's csv converter
--
-- Version 1.4
-- mike (at) cappella (dot) us
--
use AppleScript version "2.5" -- runs on 10.11 (El Capitan) and later
use scripting additions