Showing posts with label mac. Show all posts
Showing posts with label mac. Show all posts

2009/06/27

Sparse image bundle for Time Machine backup

The command is:

$ hdiutil create -size 150g -fs HFS+J -nospotlight -imagekey sparse-band-size=131072 -volname “hostname-backup” /tmp/HOSTNAME_MACADDRESSWITHOUTCOLONS.sparsebundle
-size
the maximal size of the bundle in gigabytes (created image will be initially smaller though - about 250MB)
-fs HFS+J
the filesystem - using HFS is the main reason for preparing image anyway. TimeMachine depends on some HFS magic.
-nospotlight
prevents Mac OS from indexing this image
-imagekey sparse-band-size=131072
some sources on the Internet claim this is the best choice in terms of performance

When the image is ready, it should be moved to the network share where backup will be stored. Choosing the new location in TimeMachine preferences is the last step.

2008/04/08

Time Machine backups on SMB share

Finally I managed to perform network Time Machine backups.

Despite the fact that network Time Machine backups were advertised by Apple before Leopard launch, this functionality has been disabled just before the release. I don't want to speculate about true reasons behind this move. There are some rumors that it was because of new apple's Time Capsule product and an attempt to bind network backups of Mac OS X to this device. Could be partially, however problem seems to be technical, not economical.

Network TM backups are disabled by default, however turning this feature on is quite simple, it is enough to run in Terminal:

defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

In my case one more required step was to create sparse image bundle for the backup named in pattern

hostname_mac address without separators

, on the destination backup share.

(Update: you might be interested in precise command for creating sparse image bundle.)

This kind of backup use to be potentially unstable - there is an apple forum post regarding this issue. The problem seems to be fixed now with the latest TimeMachine and AirPort update. Probably this bug was an original rationale behind disabling network TM backups when the Leopard was released. Are there any more obstacles for network TM backups? If not - apple, please make network volumes appear in TM's drive chooser by default. Also the need of preparing sparse image bundle in order to make a backup seems to be too difficult for many Mac OS X users. Is it made for purpose? I believe there is still some technical issue behind. The only thing that worries me is backup instability. :(

2008/03/26

Gimp, XQuartz, Gtk+ for Mac OS X and OpenOffice Aqua on Leopard

I wanted to have gimp on my mac. As it was suggested on the Wilber loves apple site, I also installed XQuartz - X11.app improved comparing to version shipped with leopard. It works fine. With this little hack I was even able to get rid of the most annoying feature of some X11 apps running on Mac. :)

While browsing WLA forum I found information, that there is native OS X gtk port which allows to build almost fully useable gimp - very interesting.

Unfortunately after X11.app upgrade OpenOffice stopped working. :( It is still possible to run it with console, but not from the icon. Looking for the solution I found more interesting OS X resources:

2008/02/13

Mac OS X apps I am using

I am still running tiger on my MacBook. Now I have no time, to put any effort in upgrading to leopard, however sooner or later I will do this. I am writing down the list of applications I am using on tiger, just to know what should I install on leopard. I don't want to perform an upgrade, rather install everything from scratch. Kind of Windows approach? Definitely - Mac OS X is Unix but definately not Unix of debian distro paradigm, with all the apt and aptitude goodies. Lets take MacPorts as an example. They are so messy in managing library dependencies. Some cyclic dependencies result in permanent grow of installed versions of the same library.

One thing I am sure - I will create small partition for Ubuntu, when installing leopard. I hope the same partition could be used by BootCamp and Parallels.

And here is the list:

  • Thunderbird
  • Eclipse
  • Firefox
  • Adium
  • Inkscape
  • Mplayer
  • Skype
  • last.fm
  • SQLDeveloper
  • SSHKeychain
  • Stickies
  • JDeveloper
  • Cisco VPN Client
  • Smultron
  • OpenOffice
  • MS Remote Desktop Connection
  • X11
  • TaskCoach
  • Lyx
  • Gimp
  • Amua
  • Chicken of the VNC
  • Cyberduck
  • Disk Inventory X
  • Google Earth
  • Google Notifier
  • iRed Lite
  • MacSaber :)
  • Reader Notifier
  • Second Life
  • Tinker Tool
  • UnRarX
  • Lingon
  • MacPorts
  • Deep Sleep - real hibernation istead of suspension, means no battery is consumed on powering the memory

Update: there is no need of using SSHKeychain anymore - leopard has this functionality built in and integrated with system keychain - great.