# For tar, if the exclude file contains a "/" it is assumed to be anchored # at the start of the string. Since all the tar paths start with "./", # BackupPC prepends a "." if the exclude file starts with a "/". Note # that GNU tar version >= 1.13.7 is required for the exclude option to # work correctly. For linux or unix machines you should add # "/proc" to $Conf{BackupFilesExclude} unless you have specified # --one-file-system in $Conf{TarClientCmd} or --one-file-system in # $Conf{RsyncArgs}. Also, for tar, do not use a trailing "/" in # the directory name: a trailing "/" causes the name to not match # and the directory will not be excluded. # # Users report that for smbclient you should specify a directory # followed by "/*", eg: "/proc/*", instead of just "/proc". # # If a hash is used, a special key "*" means it applies to all # shares that don't have a specific entry. # # Examples: # $Conf{BackupFilesExclude} = '/temp'; # $Conf{BackupFilesExclude} = ['/temp']; # same as first example # $Conf{BackupFilesExclude} = ['/temp', '/winnt/tmp']; # $Conf{BackupFilesExclude} = { # 'c' => ['/temp', '/winnt/tmp'], # these are for 'c' share # 'd' => ['/junk', '/dont_back_this_up'], # these are for 'd' share # }; # $Conf{BackupFilesExclude} = { # 'c' => ['/temp', '/winnt/tmp'], # these are for 'c' share # '*' => ['/junk', '/dont_back_this_up'], # these are for other shares # }; # $Conf{BackupFilesExclude} = { '*' => [ '/Application*', '/sbin/*', '/cores/*', '/bin/*', '/Volumes/*', '/System*/*', '/Library/*', '/dev/*', '*/.*/*', '*\\Documents and Settings\\NetworkService\\*', '.*\\*', '*\\Config.Msi\\*', '*\\*Recovery\\*', '*\\Utilitaires\\*', '\\MSOCache\\*', '*\\All Users\\*', '*\\AppData\\*', '*\\Local*\\*', '*\\Application Data\\*', '\\Program*\\*', '*\\WINDOWS*\\*', '*\\Windows*\\*', '*\\temp*\\*', '*\\Temp*\\*', '\\Users\\All Users\\*', '\\Users\\Default User\\*', '\\Users\\*\\Application Data\\*', '\\Users\\*\\Cookies\\*', '\\Users\\*\\Local Settings\\*', '\\Users\\*\\NetHood\\*', '\\Users\\*\\PrintHood\\*', '\\Users\\*\\Recent\\*', '\\Users\\*\\SendTo\\*', '\\Users\\*\\Start Menu\\*', '\\Users\\*\\Templates\\*', '\\Users\\*\\AppData\\*', '\\Users\\*\\Documents\\My Music\\*', '\\Users\\*\\Documents\\My Pictures\\*', '\\Users\\*\\Documents\\My Videos\\*', '\\Users\\*\\NTUSER.DAT*', '\\Users\\*\\ntuser.dat*', '*.lock', 'Thumbs.db', 'IconCache.db', 'Cache*', 'cache*', '\\*RECYCLE*\\*', '*\\*recycl*\\*', '\\$Recycle.Bin\\*', '\\System Volume Information\\*', '\\Boot\\*', '\\autoexec.bat', '\\bootmgr', '\\BOOTSECT.BAK' ] };