开元周游
德国频道
查看: 3906|回复: 2
打印 上一主题 下一主题

MacOS TimeMachine 备份到网络硬盘

[复制链接]
跳转到指定楼层
1#
发表于 18.8.2010 16:33:08 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
即时机票
本帖最后由 zhaofangzi 于 18.8.2010 19:50 编辑

MacOS TimeMachine 备份到网络硬盘

为什么备份到网络硬盘?
1。 没有Time Capsule
2。 桌面PC硬盘更便宜,容量更大
3。 同样可使用WIFI备份

步骤
Create SMB share -> Create sparsebundle -> Resize sparsebundle -> Done!


详细步骤
1) Create a SMB share on a Windows machine with name "TimeMachine"
2) Set up read/write rights for a Windows user
3) Mount the SMB share from MACOS Finder with the Windows user
4) Enable MACOS TM backup to SMB share

    Console$ defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

Now you can configure TM to backup to the share, but it will fail to create the sparsebundle image on the share!!!

5) Create a sparsebundle image on a local disk

     Console$ hdiutil create -size $512m -fs HFS+J -type SPARSEBUNDLE -layout SPUD -volname "TimeMachine" Macbook_001533c6ff58.sparsebundle

I want the image to be 512 MB, the created image is in fact much smaller, 50 MB in my case.

The image name must be ${machine_name}_${MAC_address}.sparsebundle, in my case Macbook_001533c6ff58.sparsebundle

6) Copy the created sparsebundle image to the share
7) Resize the copied sparsebundle

     Console$ hdiutil resize -size 20g -imageonly /Volumes/TimeMachine/Macbook_001533c6ff58.sparsebundle -verbose -debug

I want to resize the image to 20 GB, the resize image is in fact much smaller, still 50 MB in my case.

If resized successfully, you will see:

CBundleBackingStore::closeDataFork: releaseBands returned 45
CBundleBackingStore::closeDataFork: returning 45
closing 4 /Volumes/TimeMachine/Macbook_001533c6ff58.sparsebundle/token closeDataFork 2002
returned from DIHLResizeImage with 0
hdiutil: resize: completed successfully

8) Now you can tell the TM to start backup. Good luck!





联接:
http://www.macosxhints.com/article.php?story=20080420211034137
http://www.macosxhints.com/article.php?story=20071108020121567
2#
发表于 19.8.2010 20:36:16 | 只看该作者
Time machine的概念不错,不只是单纯的备份
回复 支持 反对

使用道具 举报

3#
发表于 23.8.2010 11:12:31 | 只看该作者
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

站点信息

站点统计| 举报| Archiver| 手机版| 小黑屋

Powered by Discuz! X3.2 © 2001-2014 Comsenz Inc.

GMT+1, 14.11.2024 03:01

关于我们|Apps

() 开元网

快速回复 返回顶部 返回列表