Mac + Permanent Routing Table on Boot up

http://meinit.nl/add-permanent-static-route-mac-os-x
http://blog.irrashai.com/blog/2009/03/how-to-add-static-route-in-mac-os-x/

http://blog.irrashai.com/blog/2009/03/how-to-add-static-route-in-mac-os-x/

$ sudo mkdir /Library/StartupItems/AddRoute

# cd /Library/StartupItems/AddRoute

$ echo “{

        Description     = \”Add static routing tables\”;

        Provides        = (\”AddRoutes\”);

        Requires        = (\”Network\”);

        OrderPreference = \”None\”;

}” > StartupParameters.plist

$ echo “#!/bin/sh

# Set up static routing tables

# Roark Holz, Thursday, April 6, 2006

. /etc/rc.common

StartService ()

{

        ConsoleMessage “Adding Static Routing Tables”

sudo route add 10.0.0.0/8 192.168.200.15

}

StopService ()

{

        return 0

}

RestartService ()

{

        return 0

}

RunService “$1″” > AddRoutes

$ sudo chmod 755 AddRoutes

WebDav, Alias, Multiple site configuration

Configure a WebDAV enabled webserver for multiple user folders and one shared folder

 

DAVLockDB /serv/webdav.example.org/auth/DAVLock
DAVMinTimeout 180 

NameVirtualHost 10.1.1.1
<VirtualHost webdav.example.org>

    ServerName  webdav.example.org
    ServerAdmin webmaster@example.org

    DocumentRoot /serv/webdav.example.org/htdocs/

    LogLevel warn 

    ErrorLog /serv/webdav.example.org/logs/error.log
    CustomLog /serv/webdav.example.org/logs/access.log combined

    # user1
    Alias /user1 /serv/webdav.example.org/webdav/user1

    <Directory /serv/webdav.example.org/webdav/user1>
        DAV             On
        AuthType        Basic 
        AuthName        "My WebDav Directory"
        AuthUserFile    /serv/webdav.example.org/auth/webdav.user
        Require         valid-user 
    </Directory>

    <Location /user1/>
        Require     user user1
    </Location>

    # user2
    Alias /user2 /serv/webdav.example.org/webdav/user2

    <Directory /serv/webdav.example.org/webdav/user2>
        DAV             On
        AuthType        Basic 
        AuthName        "My WebDav Directory"
        AuthUserFile    /serv/webdav.example.org/auth/webdav.user
        Require         valid-user 
    </Directory>

    <Location /user2/>
        Require     user user2 
    </Location>

    # transfer 
    Alias /transfer /serv/webdav.example.org/webdav/transfer

    <Directory /serv/webdav.example.org/webdav/transfer>
        DAV             On
        AuthType        Basic 
        AuthName        "My WebDav Directory"
        AuthUserFile    /serv/webdav.example.org/auth/webdav.user
        Require         valid-user 
    </Directory>

    <Location /transfer/>
        Require    valid-user 
    </Location>

</VirtualHost>

timemachine 디스크 옮기기

단순?하게 물리적인 하드 vs 하드로 옮길 경우는 아래의 링크와 같이
http://support.apple.com/kb/HT5096
그냥 옮기면 됨…

그러나, 로컬(이동식등) 하드로 Time Machine을 하다가 이 내용을 Network Drive로 옮기고자 할 경우는 전혀 다른 이야기가 되됨…
(한시간째 일이 손에 잡히지 않아 졸음도 쫒을 겸, 이것 저것 알아보는중…)
결론부터 얘기하면 Network Drive로 잡히는 TimeMachine(이하 TM)은 해당 파티션을 노멀하게 사용하지 않고, Sparce Bundle Image를 하나 만들어 이 안에 패키지 내용을 적어넣는 방식을 따르고 있다.
실제로, 서버에서 AFB등의 설정에서 ‘TM용으로 사용’이라는 옵션을 걸어 공유를 만들게 되면
해당 디렉토리안에 {host_id}라는 이름을 가진 sparcebundle 디스크 이미지가 한개 떠억~ 생성되어 있다.
이 이미지를 마운팅해서 보면, 많이 보던 디렉토리 구조가 펼쳐져 있다…
결국, 네트웍 드라이브로 TM을 설정하고자 할 경우는 바로 디렉토리를 복사하면 되는게 아니라
이 sparcebundle을 마운트 하여 이곳 안에 Backups.backupdb 이하를 털어 넣어야 된다는 것이다…

=_= 의도치 않게 중복된 복사를 또 하는중…;;; 복사하는데 몇시간 걸렸는데…;; 끙….

참조…

How to make time machine to recognize any disk for backup


http://gigaom.com/apple/how-to-use-time-machine-over-a-network/

 

The following are some simple instructions to set up a new backup volume from scratch and have Apple Time Machine to recognize it:

♦ Find your machine name (machine_name) and run the following command in terminal (in this example we’re creating a 250GB partition):

hdiutil create -size 250G -fs HFS+J -volname ‘My Backups’ -type SPARSEBUNDLE machine_name.sparsebundle

♦ The output should be something like machine_name.sparsebundle under your user’s home directory.

♦ You will need to find your hardware UUID in the System Profiler.

♦ Create a file (using your text editor) and name it TimeMachine.MachineID.plist and add your machine’s UUID to it.

 

Here is an example of the file content:

<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”>
<plist version=”1.0″>
<dict>
<key>com.apple.backupd.HostUUID</key>
<string>YOURUUIDHERE</string>
</dict>
</plist>

♦ Save the file and copy it to the machine_name.sparsebundle package.

cp com.apple.TimeMachine.MachineID.plist machine_name.sparsebundle/

♦ Copy machine_name.sparsebundle to the root directory of your backup disk.

♦ Start Time Machine disk configuration. Your new disk should appear there and TM should be able to use as a backup up disk.