Created
July 27, 2018 23:24
-
-
Save lgw4/b03e99dce2d65934935e38eaa6e58143 to your computer and use it in GitHub Desktop.
macOS: Create encrypted APFS sparsebundle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| hdiutil create "${VOLUME_NAME}.sparsebundle" -size "${SIZE}"G -fs APFS -type SPARSEBUNDLE -encryption AES-256 -volname "${VOLUME_NAME}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment