Shane Duffy

Archive for the ‘apple’ Category

This is a quick follow up post to my earlier one about creating timemachine backups on a network share.

A good tip/trick for anyone who has setup backups to a network share is to disable spotlight from indexing this volume as it slows down the backup process a lot. This can easily be disabled by going to the spotlight panel in system preferences.

To avoid this slow down, as soon as the share is mounted for the backup process go to Spotlight’s Privacy panel in System Preferences. Use the ‘+’ button at the bottom, select your backup share, and Spotlight will then ignore it. If Spotlight has already started indexing it, it should immediately stop and the backup will speed up.

spotlight

So this morning I was doing some work with one of my webservers and adding new sub hosts to some of the domains and to see the changes on my MacBook pro laptop I knew I would need to flush the DNS cache so I wouldnt have to wait for the cache to expire.

So for anyone else who needs to know the commands here they are:

OS X <= 10.5.1

lookupd -flushcache

OS X >= 10.5.2

dscacheutil -flushcache

Hope that will help anyone out there who needs to flush their dns cache and has just upgraded to 10.5.2

The majority of us don’t backup on a regular basis. It usually isn’t until we lose a bunch of critical data that the light bulb turns on and we start backing up for maybe a week or two and then we stop. Apple’s new Leopard operating system contains Time Machine to fix that problem. Time Machine runs in the background, backing up your entire hard drive without you having to remember to manually run a backup.

This was one of the niceties which excited me about upgrading to Leopard; however I was somewhat disappointed to learn after upgrading, that Time Machine would only backup to another physically attached hard drive. In my situation I primarily like to place my backups in a remote location such as a networked server. I work of a laptop, so my physical working location is always changing and I’m not going to carry an external drive with me all the time. Luckily, after a few hours of research I found a nice tweak to let me use our office network servers as my backup location.

Here is how you do it:

REQUIREMENTS
Obviously you need to be running Leopard and you’ll need a network share which is larger or equal to your hard drive in your Mac. In my case these shares are in SMB and AFP.

1. Go into Applications / Utilities and open up terminal
2. Copy and paste this command into terminal (all on one line)

defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

3. Hit enter / return
4. Mount your network share, in my case my share is off our server called INAS1 and my share is called User-Backups
5. Go to System Preferences and open Time Machine
6. Click on Change Disk
7. Select the share you wish to backup to, I’ve selected User-Backups
6. That’s it, you’re done

Wait up to 15 minutes and you should be set. To verify it is working open up your network share in Finder and you should see a file which is named [your computer name] [your MAC address].sparsebundle

Be sure you post any comments or questions about this method.

I often get given laptops and computers by friends to sort out because the see me as the “computer whiz”. This time even I had to think about the problem for a while, I was given a Macbook laptop that keep saying it had no free space left on the hard drive anymore, The user had deleted everything the could and did all the usual emptying the trash can to no avail. The only thing I noticed as been different on the laptop was the Home directory was encrypted with File Vault. File Vault is ment to run a clean up agent when you logout to free up the disk space that was used by deleted files on the encrypted file system, The trick however is that this will only run if the laptop is plugged into the power supply at the time.

The other problem is to turn file vault off your require 5x or more free space than what is been used by file vault at the time, So if you have 20GB in your Home directory, and want to turn it off you will need 100GB of free space.

File Vault

So unless your really paranoid about your files and security don’t turn on file vault, as in the end it will be more hassle than its worth.


Subscribe to this blog now!

Top Clicks

  • None
May 2017
M T W T F S S
« Feb    
1234567
891011121314
15161718192021
22232425262728
293031