Common backup excludes
From backuppc
Contents |
Linux
This all comes down to design of your servers. For us, important data lives in a RAID1 and there's a second cheap IDE drive which is for downloads and cr*p. Users know that //server/junk is not backed up.
$Conf{BackupFilesExclude} = [
'/home/samba/shared/Archive',
'/home/samba/programs',
'/home/samba/download',
'/home/samba/images',
'/home/samba/shared/GHOST',
'/home/camera',
'/home/temp',
'/home/backup',
'*.wma', '*.mp3', '*.avi'
];
Mac OS X
Opinions may vary, of course, but here is a starting set. I'll revise here as we revise in our implementation, but for now this gets a lot of it... And like above, users understand that we do NOT backup images/iTunes/iMovie/etc... Since we run IMAP, we don't back up the user's locally cached IMAP mail folder either...
$Conf{RsyncShareName} = [
'/Users/'
];
$Conf{BackupFilesExclude} = {
'*' => [
'IMAP-*@*',
'Caches',
'CachedMessages',
'Downloads',
'Pictures',
'Music',
'Movies',
'FindByContent',
'Trash',
'.Trash',
'.Trashes',
'.vol',
'.fseventd',
'.Spotlight*',
'*.wma', '*.mp3', '*.avi', '*.mov', '*.m4a', '*.m4b', '*.aac', '*.vob'
]
};
I suppose those could/should be "*/Mail/IMAP-*@*", "*/Pictures" and so forth to make sure you are talking about the right level of folders, but this is how I initially set it up and until I test it out more I don't want to post bad information.
Windows 2000
My exclude list when backing up Windows 2000 clients with rsyncd, the rsyncd share is /cygdrive/c:
$Conf{BackupFilesExclude} = [
'/Documents?and?Settings/*/Local?Settings/Temp',
'/Documents?and?Settings/*/Recent',
'UsrClass.dat',
'UsrClass.dat.LOG',
'*/Cache',
'*/parent.lock',
'NTUSER.DAT',
'Thumbs.db',
'IconCache.db',
'ntuser.dat.LOG',
'/RECYCLER',
'*/Temporary?Internet?Files',
'/System?Volume?Information',
'/pagefile.sys',
'/hiberfil.sys'
];
Windows XP
Exclude list from this site for Windows XP clients with rsyncd, with the rsyncd share being /cygdrive/c:
$Conf{BackupFilesExclude} = {
#XP specific!
'*' => [
#Temporary and in-use user data
'/Documents and Settings/*/Local Settings/Temporary Internet Files/',
'/Documents and Settings/*/Local Settings/Temp/',
'/Documents and Settings/*/NTUSER.DAT',
'/Documents and Settings/*/ntuser.dat.LOG',
'/Documents and Settings/*/Local Settings/Application Data/Microsoft/Windows/UsrClass.dat',
'/Documents and Settings/*/Local Settings/Application Data/Microsoft/Windows/UsrClass.dat.LOG',
'/Documents and Settings/*/Local Settings/Application Data/Mozilla/Firefox/Profiles/*/Cache/',
'/Documents and Settings/*/Local Settings/Application Data/Mozilla/Firefox/Profiles/*/OfflineCache/',
'/Documents and Settings/*/Recent/',
'*.lock',
'Thumbs.db',
'IconCache.db',
'Cache',
'cache',
#Installation folders and system data
'/WINDOWS/',
'/RECYCLER/',
'/MSOCache/',
'/System Volume Information/',
'/AUTOEXEC.BAT',
'/BOOTSECT.BAK',
'/CONFIG.SYS',
'/hiberfil.sys',
'/pagefile.sys'
]
};
Windows Vista
Exclude list from this site for Windows Vista clients with rsyncd, with the rsyncd share being /cygdrive/c:
I ran into a lot of problems on my Vista machines where rsync would follow the junction points they added for backward compatability (see this site for more info). This caused extra-long filenames rsync couldn't handle. To find all junction points on your Vista machine use this command from the C: drive in the command prompt:
dir /aL /s > c:\Users\USERNAME\JunctionPoints.txt
So I had to add all of these to the excludes list:
$Conf{BackupFilesExclude} = {
#Vista specific!
'*' => [
#Vista junction points
'/Documents and Settings',
'/ProgramData/Application Data',
'/ProgramData/Desktop',
'/ProgramData/Documents',
'/ProgramData/Favorites',
'/ProgramData/Start Menu',
'/ProgramData/Templates',
'/Users/All Users',
'/Users/Users/Default User',
'/Users/Users/All Users/Application Data',
'/Users/Users/All Users/Desktop',
'/Users/All Users/Documents',
'/Users/All Users/Favorites',
'/Users/All Users/Start Menu',
'/Users/All Users/Templates',
'/Users/Public/Documents/My Music',
'/Users/Public/Documents/My Pictures',
'/Users/Public/Documents/My Videos',
#Junction points common to every user profile
'/Users/*/Application Data',
'/Users/*/Cookies',
'/Users/*/Local Settings',
'/Users/*/My Documents',
'/Users/*/NetHood',
'/Users/*/PrintHood',
'/Users/*/Recent',
'/Users/*/SendTo',
'/Users/*/Start Menu',
'/Users/*/Templates',
'/Users/*/AppData/Local/Application Data',
'/Users/*/AppData/Local/History',
'/Users/*/AppData/Local/Temporary Internet Files',
'/Users/*/Documents/My Music',
'/Users/*/Documents/My Pictures',
'/Users/*/Documents/My Videos',
]
};
The rules with asterisks in them will match the junction points that are in every user profile by default without having to code each user manually.
Then we can get rid of any temp data and program or system installation files. On Vista, only original installation data is stored in Program Files. Any data programs write to their installation folder goes to ProgramData automatically instead. The Windows folder shouldn't hold anything interesting, either. The rest of these rules are replaceable or unimportant data:
#Temporary and in-use user data
'/Users/*/AppData/Local/Microsoft/Windows/Temporary Internet Files/',
'/Users/*/AppData/Local/Temp/',
'/Users/*/NTUSER.DAT',
'/Users/*/ntuser.dat.LOG1',
'/Users/*/ntuser.dat.LOG2',
'/Users/*/AppData/Local/Microsoft/Windows/UsrClass.dat',
'/Users/*/AppData/Local/Microsoft/Windows/UsrClass.dat.LOG1',
'/Users/*/AppData/Local/Microsoft/Windows/UsrClass.dat.LOG2',
'/Users/*/AppData/Local/Microsoft/Windows Defender/FileTracker/',
'/Users/*/AppData/Local/Mozilla/Firefox/Profiles/*/Cache/',
'/Users/*/AppData/Local/Mozilla/Firefox/Profiles/*/OfflineCache/',
'/Users/*/AppData/Roaming/Microsoft/Windows/Recent/',
'*.lock',
'Thumbs.db',
'IconCache.db',
'Cache',
'cache',
#Installation folders and system data
'/Program Files/',
'/Windows/',
'/$Recycle.Bin/',
'/MSOCache/',
'/System Volume Information/',
'/Boot/',
'/autoexec.bat',
'/bootmgr',
'/BOOTSECT.BAK',
'/config.sys',
'/hiberfil.sys',
'/pagefile.sys'
If you're only backing up the users folder, you can omit the last rules and remove the '/Users' prefix from the rest of the rules.
