타임캡슐

윈도 공유폴더 SMB를 이용한 타임머신 백업. By neistar(kwang450)@네이버,맥쓰사 출처 : http://cafe.naver.com/inmacbook/651993 niestar(kwang450)님

윈도 공유폴더 기능인 smb 프로토콜을 사용하여 Timemachine 백업을 사용하는 방법을 알아보던중 발견한 내용입니다. 실행해본결과 아주 잘되서 소개해드리려합니다.

1.윈도우 PC에 공유폴더를 만들고 읽기/쓰기 권한을 부여합니다

2.공유폴더를 맥에 마운트시킵니다

3.터미널을 열고, “ defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1 ″

을 입력합니다(따옴표제외)

4.5. 번은 넘어갑니다

6.디스크 유틸리티를 열고 새이미지 만들기를 선택합니다

7.파일이름을 “ComputerName_Address.sparsebundle” 과 같은 규칙으로 만듭니다.

즉, "컴퓨터이름_이더넷맥주소.sparsebundle" 와 같은규칙입니다.

컴퓨터이름은 시스템환경설정-공유에서 쉽게 확인하실 수 있으며, Mac 주소는 어플리케이션-유틸리티-네트워크 유틸리티 에서 확인하실수 있습니다

8.주의, 이더넷의 MAC 주소를 사용하십시오.

 하지만 첫 타임머신 백업후에는 와이파이를 통한 백업도 잘 됩니다.

*맥북에어에서 테스트 해보지는 못하였습니다만, 에어의 경우에는 아마 와이파이 MAC 주소를 사용해야할것 같습니다.

9.파티션을 '파티션 맵 없음'으로 선택합니다

10.이미지 포맷을 '분할 번들 디스크 이미지' 으로 선택합니다

11.크기를 '사용자화…' 선택한 후 원하는 크기로 설정합니다. 자신의 맥에 여유공간이 충분치 않더라도

 생성가능합니다(e.g. 128기가 SSD가 달려있더라도, 300기가 용량설정이 가능)

12. 이름(볼륨이름)은 'TimeMachine' 으로 설정합니다

*이름은 아무거나 하셔도 상관없으십니다

13. 생성된 이미지를 윈도측 공유폴더로 이동시킵니다

14.

  backupd_anyafp_r2.zip
 첨부한 파일을 압축해제 하시고 install.sh 를 오른쪽 클릭 하신후
   - 다음으로 열기 - 어플리케이션 - 유틸리티 - 터미널 로 열어줍니다

인스톨시 "All My Data is Doomed" 라는 무시무시한 말을 따라하라 합니다. 따라해줍니다. 이상없습니다

계정 비밀번호를 입력해줍니다

15. 공유폴더에 있는 이미지를 더블클릭해 마운트합니다.

16. 터미널에서 다음과 같이 입력합니다 sudo tmutil setdestination -p /Volumes/TimeMachine

타임머신을 실행하시면 됩니다.

niestar님 천재신것 같습니다. 메일 드리겠습니다 부디 뭐라하시지 말아주셔요 ㅠ

<본문> - niestar

seagate 외장하드를 선물받았습니다. http://blog.danawa.com/prod/?section_m=PC&prod_c=1344540&cate_c1=862&cate_c2=10620&cate_c3=10670&cate_c4=0

그리고 타임머신 네트워크로 백업을 하기위해서 장비를 알아 보던중. http://www.seagate.com/home-entertainment/media-sharing-devices/goflex-net/

이런 장비가 있다는 것을 알게 되었습니다. 국내 판매는 안해서 이베이에서 사서 해외배송했습니다. 하지만 타임머신은 네트워크 백업을 지원하지 않더군요. 타임캡슐을 제외하고. 고플렉스넷 은 smb 서버를 지원합니다. 그래서 이것을 이용해서 네트워크 타임머신 백업을 할 방법이 있을 거란 확신 후에 구글 검색을 시작하였고, 여러 군데 사이트의 내용을 종합하여 성공하였습니다. 다음과 같이 하면 됩니다. 영어로 적겠습니다.

Create a read/write windows network share on the target system. Mount the network share in your mac. Open a terminal in mac and enter “defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1″ – this makes Time Machine accept non-local, non-HFS drives… Open Time Machine and voila: you see the network share. Select the network share and wait for the backup process to start. Observe the network share and copy the filename which is created by Time Machine, since we want to create this file for it. The process will end with an error. I found out that Time Machine is unable to create the so-called sparsebundle file. Open “Disk Utility” on the Mac and create a new image. Save your new image with the filename like the one created by Time Machine. The name should be something like “ComputerName_MACAddress.sparsebundle”. (Niestar iMac_1c6f65d7XXXX.sparsebundle) (Name or disk image : TimeMachine) ATTENTION: The MACAddress HAS to be the MACAddress of the Ethernet, no matter which interface you use for backup. I was trying the backup over wifi and Time Machine created a file with the wifi MACAddress. For some reason this doesnt work. Its possible to backup over wifi, but use the Ethernet MACAddress in the filename. The volume name however can be whatever you like. Custom volume size must be the last value set. Change partition to “No Partition Map” Change Image Format to “Sparce Bundle Disk Image” Set “Custom Volume size” to the maximum you want to use on your remote location. Dont worry, as your Mac doesnt have to have the required space available you can choose whatever is available on your network share. Save the image and move it to the network share. Start the Time Machine process again. You may fail. Haha follow this Download and run the script from this file to modify backupd in such a way that it accepts remote disk on the network share: backupd_anyafp_r2 – just unpack and run ./install.sh from the terminal. Mount the sparse image on the network drive In the terminal : sudo tmutil setdestination -p /Volumes/TimeMachine (4/5번은 라이온에서 되지 않으니 바로 6으로 넘어가세요)

이미지 만들 때 제 맥 이름이 Niestar iMac이고 뒤에 1c6f로 시작하는 것이 제 이더넷 맥어드레스입니다. 그리고 만들 이미지는 이름이 TimeMachine으로 예를 들었습니다. TimeMachine은 띄어쓰기를 하지 않았습니다. 그 이유는 이렇게 이미지를 만들고 나서 automator로 컴퓨터 켤 때마다 자동으로 서버 접속을 시도하도록 했는데, automator 사용 중에 서버 이름이 띄어쓰기가 되어있으면 접속을 못해서 띄어쓰기를 하지 않았습니다. 아무튼 위에 설명해 놓은 것처럼 설정해서 타임머신 처음 백업을 성공하시면 automator로 서버 접속하는 것을 컴 켤때마다 자동으로 하게 하면 타임머신 백업도 항상 자동으로 되겠지요.

항상 이 게시판에서 좋은 정보를 많이 얻어가서 저도 팁을 올리는데 제가 시간이 없어서 너무 대충 쓴게 아닌가 싶네요. 죄송합니다. 시도하고 잘 안되면 질문해 주세요.

이 모든게 타임캡슐 하나만 있으면 필요 없는 작업인데 너무 삽질을 많이 했어요.ㅠㅠ