Wednesday, June 27, 2012

Exclude files and folders from Time Machine


I was asked if there were any default exclusions from Time Machine a while back.  While searching the internet, I came up with the following document:

<?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>
/.Spotlight-V100 
/.Trashes 
/.fseventsd 
/.hotfiles.btree 
/Backups.backupdb 
/Desktop DB 
/Desktop DF 
/Network/Servers 
/Previous Systems 
/Users/Shared/SC Info 
/Users/Guest 
/dev 
/home 
/net 
/private/var/db/efw_cache 
/private/var/db/Spotlight <!-- old tiger location of the Spotlight db -->
/private/var/db/Spotlight-V100 <!-- old tiger location of the Spotlight db -->
</array>
<!-- paths where we need to capture top level folder to restore disk structure, but don't want to backup any contents -->

<key>ContentsExcluded</key>
<array>
/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 
</array>
<!-- paths where we need to capture entire subtree folder layout to restore disk structure, but don't want to backup contained files -->

<key>FileContentsExcluded</key>
<array>
/private/var/log 
/private/var/spool/cups 
         /private/var/spool/fax 
         /private/var/spool/uucp 
</array>
<!-- standard user paths we want to skip for each user (subpath relative to root of home directory) -->
<key>UserPathsExcluded</key>
<array>
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 
</array>
</dict>
</plist>

You can click here to view a page with similar content, or use can go to the Finder and pull down the Go menu then Go to Folder... and copy and paste this path:

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

The following paths are my own exclusions.  To define your own set of exclusions, simply go into System Preferences, click on Time Machine and click on Options.

User Defined (my) Exclusions
~/Desktop/Facebook
~/Frostwire
/Users/Shared/Parallels
/Users/seanski/Library/Mail/V2/IMAP-seanski35@imap.gmail.com/

1 comment:

  1. Good one ! Keep it up, Contact us at Hotmail Customer Care Number Canada, call at 1-888-582-4887 and get technical support and our team will assist you. Outlook Support Canada for your help.

    ReplyDelete