HOW-TO; Creacte a secure backup, using OS X
(If you just want the HOW-TO, scroll down, it’s below
the intro to backup)
Sometimes, its not a bad idea to have backup, and most people realize this when they need the backup.
You only think of your car’s spare tire when you have a flat, and after the first time you get stuck in the
middle of nowhere with a flat spare, it will never happen to you again, and you will always check your
spare before going on a trip.
Backup on OS X is very easy, and you have to be super-lazy or an absolutely careless and free spirited
person. If you are like me, and your Apple is almost an extension of your body (i almost feel naked when i leave the house without my laptop bag), then you dont want to have to resort to...(drum roll) Data Recovery.
This is not a ‘How-to backup’, so i’ll just mention my backup scheme:
1. SuperDuper clone of my internal HD, in a safe.
2. portable media vault (PMV), two partitions, one is encrypted
3. PMV clone at home
4. Capture scratch and FMV (fixed media vault)
why so much? well, hard disks are not reliable, and i do not want my 90 gig itunes library dead, nor my 15 gig iphoto library, so it is backed up (anyone who experienced the ‘external firewire erase’ bug of itunes knows what i am talking about). Capture Scratch is something to do with video editing, so you may disregard the CS+FMV item.
PMV i need because anyway my Internal HD is getting full, and this is why the need for encryption; these small (2.5”, laptop disk) disks are very easy to steal.
(what we came here for)How to encrypt an external USB disk?
as you may or may not know, OS X has a FileVault App, which encrypts your home folder. nice and handy, but wont work for external disks.
solutions?
1. can use applications like TrueCrypt. my problem with truecrypt was, that it doesnt allow you to format your disk as HFS+, only FAT (forget about files larger then 2gig), and is kind of complicated and intimidating, unless you name is Mr. Data.
2. my solution - create a sparse disk image, encrypted, with shrink script.
HOW-TO create a SPARSE DISK IMAGE
(this is very very easy to do, just follow the instructions)
1. open DISK UTILTY
2. FILE > NEW > BLANK DISK IMAGE
3. choose where and how the image is saved.
4 choose the size you want. there is an overhead of about 100mb for 100gb, so it is ok to choose very big images. mine is 120gb, but you should experiment with smaller ones before committing.
5. encrypt using 128-bit, or 256-bit if they are after you. you may want to uncheck the keychain box, so you (or the thief) will have to enter the password in order to mount it (this matters only when mounted on your computer, otherwise, password is needed anyway).
6. choose sparse disk image. this means the image, even if defined in size ‘200 gb’, will be just as big as it’s contents, and will expand until it reaches the predefined size.
you are done. mount the image, drag files into it, they are now AES 128-bit encrypted. this works fine for all your needs, video playback, iPhoto (all these naughty pictures are finally safe), itunes and so on. infect, this is exactly what FileVault does behind the scenes.
the is one tiny problem. when you delete files from the image file, it will not shrink. this has something to do with encryption and trash cans, but we dont really care why, we just want to fix this, dont we?
enters THE AUTO-SHRINK
(thanks iShater @ Mac Forums)
Instructions:
1) Download this zip
2) Extract the .workflow file in the archive.
3) Launch Automator from the applications folder.
4) Open the workflow file.
5) Verify the contents (Should always do that before executing someone else's script!) - you will see that it is shelling out to the bash shell and telling it to run the disk utilities application (hdiutil) to compact the file being passed in (compact "$@", where the funny characters refer to the file you select in finder when running the script).
6) In Automator do a Save-As Plug-in
7) Pick a name (same name as the script is OK)
8) Select Finder as the Plug-in type
Once that is done, you can right-click the image file and select Automator->Compact sparse image (or whatever name you chose for the script).
It will then reclaim any space left by deleted files from the sparse image.
This script was courtesy of an article from MacWorld.
Sometimes, its not a bad idea to have backup, and most people realize this when they need the backup.
You only think of your car’s spare tire when you have a flat, and after the first time you get stuck in the
middle of nowhere with a flat spare, it will never happen to you again, and you will always check your
spare before going on a trip.
Backup on OS X is very easy, and you have to be super-lazy or an absolutely careless and free spirited
person. If you are like me, and your Apple is almost an extension of your body (i almost feel naked when i leave the house without my laptop bag), then you dont want to have to resort to...(drum roll) Data Recovery.
This is not a ‘How-to backup’, so i’ll just mention my backup scheme:
1. SuperDuper clone of my internal HD, in a safe.
2. portable media vault (PMV), two partitions, one is encrypted
3. PMV clone at home
4. Capture scratch and FMV (fixed media vault)
why so much? well, hard disks are not reliable, and i do not want my 90 gig itunes library dead, nor my 15 gig iphoto library, so it is backed up (anyone who experienced the ‘external firewire erase’ bug of itunes knows what i am talking about). Capture Scratch is something to do with video editing, so you may disregard the CS+FMV item.
PMV i need because anyway my Internal HD is getting full, and this is why the need for encryption; these small (2.5”, laptop disk) disks are very easy to steal.
(what we came here for)How to encrypt an external USB disk?
as you may or may not know, OS X has a FileVault App, which encrypts your home folder. nice and handy, but wont work for external disks.
solutions?
1. can use applications like TrueCrypt. my problem with truecrypt was, that it doesnt allow you to format your disk as HFS+, only FAT (forget about files larger then 2gig), and is kind of complicated and intimidating, unless you name is Mr. Data.
2. my solution - create a sparse disk image, encrypted, with shrink script.
HOW-TO create a SPARSE DISK IMAGE
(this is very very easy to do, just follow the instructions)
1. open DISK UTILTY
2. FILE > NEW > BLANK DISK IMAGE
3. choose where and how the image is saved.
4 choose the size you want. there is an overhead of about 100mb for 100gb, so it is ok to choose very big images. mine is 120gb, but you should experiment with smaller ones before committing.
5. encrypt using 128-bit, or 256-bit if they are after you. you may want to uncheck the keychain box, so you (or the thief) will have to enter the password in order to mount it (this matters only when mounted on your computer, otherwise, password is needed anyway).
6. choose sparse disk image. this means the image, even if defined in size ‘200 gb’, will be just as big as it’s contents, and will expand until it reaches the predefined size.
you are done. mount the image, drag files into it, they are now AES 128-bit encrypted. this works fine for all your needs, video playback, iPhoto (all these naughty pictures are finally safe), itunes and so on. infect, this is exactly what FileVault does behind the scenes.
the is one tiny problem. when you delete files from the image file, it will not shrink. this has something to do with encryption and trash cans, but we dont really care why, we just want to fix this, dont we?
enters THE AUTO-SHRINK
(thanks iShater @ Mac Forums)
Instructions:
1) Download this zip
2) Extract the .workflow file in the archive.
3) Launch Automator from the applications folder.
4) Open the workflow file.
5) Verify the contents (Should always do that before executing someone else's script!) - you will see that it is shelling out to the bash shell and telling it to run the disk utilities application (hdiutil) to compact the file being passed in (compact "$@", where the funny characters refer to the file you select in finder when running the script).
6) In Automator do a Save-As Plug-in
7) Pick a name (same name as the script is OK)
8) Select Finder as the Plug-in type
Once that is done, you can right-click the image file and select Automator->Compact sparse image (or whatever name you chose for the script).
It will then reclaim any space left by deleted files from the sparse image.
This script was courtesy of an article from MacWorld.

