2009-01-03

Time Machine バックアップをリモートの Samba ボリュームに取る

リモートの Samba ボリュームを Time Machine のバックアップ先として使用する方法を示す.Time Machine は Mac OS X 10.5 の機能であり,作業した時点でのバージョンは 10.5.6 (Intel) だった.

はじめに,ディスクユーティリティを用いて新規に空のディスクイメージを作成する.その際,以下のパラメータを指定する.

  • ボリュームサイズ,バックアップ対象より大きく
  • ボリュームフォーマット,Mac OS 拡張 (ジャーナリング)
  • 暗号化,なし
  • パーティション,ハードディスク
  • イメージフォーマット,スパースバンドル・ディスクイメージ

この空のディスクイメージファイルは,指定したボリュームサイズよりも大きな空き領域のあるローカルボリュームにしか作成できない.ボリュームサイズを 200 GB としたとき,ディスクイメージファイルは約 100 MB の大きさになった.

Finder を用いてリモートの Samba ボリュームに接続し,作成した空のディスクイメージファイルを Samba ボリュームのルートにコピーする.ディスクイメージのファイル名を,computer-name_mac-address.sparsebundle に変更する (computer-nameTime Machine を動かす Mac のコンピュータ名mac-address は,有線 Ethernet インターフェイスの Ethernet ID で,小文字,コロン文字なし).このディスクイメージのサイズを後から変更することはできなかった.

ターミナル を用いて,コマンド defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1 を発行する.これにより,リモートの Samba ボリュームを Time Machine のバックアップ先として指定できるようになる.Time Machine をそのように設定する.

参考

下の「References」に同じ.

Time Machine backup to a remote Samba volume

This article describes how I took Time Machine backup to a remote Samba volume. Time Machine is a function of Mac OS X 10.5. I wrote this article using Version 10.5.6, Intel.

First, create a new blank disk image by using Disk Utility with the following parameters.

  • Volume Size, larger than the backup target
  • Volume Format, Mac OS Extended (Journaled)
  • Encryption, none
  • Partition, Hard disk
  • Image Format, sparse bundle disk image

This blank disk image file needs to be saved onto a local volume whose available space is larger than the volume size of the blank disk image. The file size became around 100 MB when the volume size was set to 200 GB.

By using Finder, mount the remote Samba volume and copy the blank disk image file to the root of the remote volume. Rename the file to computer-name_mac-address.sparsebundle, where computer-name is the Computer Name on which Time Machine works, and mac-address is the Ethernet ID of the wired Ethernet interface, lowercased, without colons. The disk image could not be resized later.

By using Terminal, issue a command defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1 in order to enable Time Machine to select remote Samba volumes as backup volume. Configure Time Machine so.

References