mount_smbfs afp://<username>@<NAS_IP>/<Share_for_backup> /<mountpoint>
mount_afp afp://any_username:password@<Time_Capsule_IP>/<Share_for_backup> /<mountpoint>
hdiutil attach test.sparsebundle -readonly
printf '%s' 'CorrectHorseBatteryStaple' | hdiutil attach test.sparsebundle -stdinpass -readonly
Click to Open Code Editor