苹果的Time Machine应用程序是否真的复制了所有内容


14

想消灭我的驱动器,但想确保从Time Machine还原时,所有文件,应用程序,黑客应用程序仍然可以使用吗?


1
您可以通过删除旧的系统磁盘并在其位置安装干净磁盘并进行还原来对其进行测试。如果不起作用,则可以将旧磁盘与新磁盘进行比较,以找出原因。
tony-p-lee

Answers:


14

重新安装操作系统时,OS X会询问您是否要从Time Machine备份中还原。只需选择您的TM备份驱动器,它将重新安装操作系统,然后还原您的数据。

只要您没有设置任何排除的文件夹,它就会在系统文件夹以外的所有位置复制所有数据。

您可以在以下位置找到当前的系统排除列表。/System/Library/CoreServices/backupd.bundle/Contents/Resources/StdExclusions.plist它是一个XML文件,可以使用任何文本编辑器打开。

我的(Mac OS 10.5.8)看起来像这样:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <!-- paths we do not want to include in a system backup -->
    <key>PathsExcluded</key>
    <array>
        <string>/.Spotlight-V100</string>
        <string>/.Trashes</string>
        <string>/.fseventsd</string>
        <string>/.hotfiles.btree</string>
        <string>/Backups.backupdb</string>
        <string>/Desktop DB</string>
        <string>/Desktop DF</string>
        <string>/Network/Servers</string>
        <string>/Previous Systems</string>
        <string>/Users/Shared/SC Info</string>
        <string>/Users/Guest</string>
        <string>/dev</string>
        <string>/home</string>
        <string>/net</string>
        <string>/private/var/db/Spotlight</string>          <!-- old tiger location of the Spotlight db -->
        <string>/private/var/db/Spotlight-V100</string>     <!-- old tiger location of the Spotlight db -->
    </array>
    <!-- paths we need to include in backup so we can restore disk structure, but don't want to backup contents -->
    <key>ContentsExcluded</key>
    <array>
        <string>/Volumes</string>
        <string>/Network</string>
        <string>/automount</string>
        <string>/.vol</string>
        <string>/tmp</string>
        <string>/cores</string>
        <string>/private/tmp</string>
        <string>/private/Network</string>
        <string>/private/tftpboot</string>
        <string>/private/var/automount</string>
        <string>/private/var/log</string>
        <string>/private/var/folders</string>
        <string>/private/var/log/apache2</string>
        <string>/private/var/log/cups</string>
        <string>/private/var/log/fax</string>
        <string>/private/var/log/ppp</string>
        <string>/private/var/log/sa</string>
        <string>/private/var/log/samba</string>
        <string>/private/var/log/uucp</string>
        <string>/private/var/run</string>
        <string>/private/var/spool</string>
        <string>/private/var/tmp</string>
        <string>/private/var/vm</string>
        <string>/private/var/db/dhcpclient</string>
        <string>/private/var/db/fseventsd</string>
        <string>/Library/Caches</string>
        <string>/Library/Logs</string>
        <string>/System/Library/Caches</string>
        <string>/System/Library/Extensions/Caches</string>
    </array>
    <!-- standard user paths we want to skip for each user (subpath relative to root of home directory) -->
    <key>UserPathsExcluded</key>
    <array>
        <string>Library/Application Support/SyncServices</string>
        <string>Library/Caches</string>
        <string>Library/Logs</string>
        <string>Library/Mail/Envelope Index</string>
        <string>Library/Mail/AvailableFeeds</string>
        <string>Library/Mirrors</string>
        <string>Library/PubSub/Database</string>
        <string>Library/PubSub/Downloads</string>
        <string>Library/PubSub/Feeds</string>
        <string>Library/Safari/Icons.db</string>
        <string>Library/Safari/HistoryIndex.sk</string>
    </array>
</dict>
</plist>

是的..我想确保..我一直做一个
全新

默认情况下,它不会备份用户安装的屏幕保护程序(〜/ Library / Screen Savers)!
SilverWolf-恢复莫妮卡

4
  • 要查找设计排除的文件和文件夹,请参阅:

    /System/Library/CoreServices/backupd.bundle/Contents/Resources/StdExclusions.plist

    请注意,某些路径实际上可能是指向该文件中提到的路径的符号链接!就像Apache可能引用符号链接一样/var/logs/apache2,它实际上是通过其目标排除的/private/var/logs/apache2

  • 要查找管理用户手动排除的文件和文件夹,请参阅:

    /Library/Preferences/com.apple.TimeMachine.plist

  • 要查找特定软件(例如iTunes和VMware Fusion 1.1.2之前版本,根据“将您的虚拟机恢复原状”)所排除的文件和文件夹,请通过com.apple.metadata:com_apple_backup_excludeItem在文件上设置扩展属性来运行,请运行:

    mdfind“ com_apple_backup_excludeItem ='com.apple.backupd'”

  • 使用FileVault 时,仅在注销时才备份主文件夹。


1

我所知道的。一个月前,我试图从Macport升级(/ opt / local / etc,隐藏在Finder中)恢复一些配置文件。当我使用Timemachine进行浏览时,发现了自开始使用Timemachine以来的所有文件和目录。


1

出于所有意图和目的,它会备份所有用户数据,而不会排除任何例外情况。Time Machine的范围(Time Machine排除项)

默认情况下,Time Machine会备份计算机上的每个本地驱动器。它不会备份网络安装的驱动器,但是默认情况下会将未排除的任何本地驱动器添加到备份中。苹果有一个标准的排除清单,但由于苹果尚未正式记录这些例外情况,因此将来可能会发生不可预测的变化。但是现在,不必手动排除以下目录:

/.Spotlight-V100
/private/var/db/Spotlight <!– old tiger location of the Spotlight db –>
/private/var/db/Spotlight-V100     <!– old tiger location of the Spotlight db –>
/.Trashes
/.fseventsd
/.hotfiles.btree
/Backups.backupdb
/Desktop DB
/Desktop DF
/Previous Systems
/Users/Shared/SC Info
/Users/Guest
/dev,  /home,  /net
/Volumes
/Network
/automount
/.vol
/tmp
/cores
/private/tmp
/private/Network
/private/tftpboot
/private/var/automount
/private/var/folders
/private/var/run
/private/var/tmp
/private/var/vm
/private/var/db/dhcpclient
/private/var/db/fseventsd
/Library/Caches
/Library/Logs
/System/Library/Caches
/System/Library/Extensions/Caches
/private/var/log
/private/var/spool/cups
/private/var/spool/fax
/private/var/spool/uucp
~/Library/Application Support/SyncServices/data.version
~/Library/Caches
~/Library/Logs
~/Library/Mail/Envelope Index
~/Library/Mail/AvailableFeeds
~/Library/Mirrors
~/Library/PubSub/Database
~/Library/PubSub/Downloads
~/Library/PubSub/Feeds
~/Library/Safari/Icons.db
~/Library/Safari/WebpageIcons.db
~/Library/Safari/HistoryIndex.sk

来自http://www.schollnick.net/wordpress/systems-administration/macintosh-related/time-machine-information/

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.