All,
I am having a major issue with BackupPC. I first tried using BackupFilesOnly to restrict backups to just the C:\Users directory, but I needed to exclude some files and since the first overrides the second I decided to try just using the ExcludeFiles directive. I am using the following.
$Conf{BackupFilesExclude} = {
#Windows 7 Specific
'*' => [
#7/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',
#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',
#Temporary and in-use user data
'/Users/*/AppData/Local/Microsoft/Windows/Temporary Internet
Files',
'/Users/*/AppData/Local/Temp',
'/Users/*/NTUSER.DAT*',
'/Users/*/ntuser.dat*',
'/Users/*/AppData/Local/Microsoft/Windows/UsrClass.dat*',
'/Users/*/AppData/Local/Microsoft/Windows
Defender/FileTracker',
‘/Users/*/AppData/Local/Microsoft/Windows/Explorer/thumbcache_*.db’,
'/Users/*/AppData/Local/Microsoft/Windows/WER',
'/Users/*/AppData/Local/lxss',
'/Users/*/AppData/Local/Mozilla/Firefox/Profiles/*/Cache',
‘/Users/*/AppData/Local/Mozilla/Firefox/Profiles/*/OfflineCache’,
'/Users/*/AppData/Roaming/Microsoft/Windows/Cookies',
'/Users/*/AppData/Roaming/Microsoft/Windows/Recent',
'ProgramData/Microsoft/Search',
'ProgramData/Microsoft/Windows Defender',
'*.lock',
‘*.so’,
'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'
]
};
I restarted the BackupPC service and I am manually running a backup using
/usr/share/BackupPC/bin/BackupPC_dump -v -f l-jwest17b.corpnet.com [1]
I am seeing this when backing up.
lla/ui/ui_template_buttons.json
pool 644 0/0 10999 Program
Files/WindowsApps/Microsoft.MinecraftUWP_1.0.20.0_x64__8wekyb3d8bbwe/data/resource_packs/vanilla/ui/ui_template_dialogs.json
pool 644 0/0 11641 Program
Files/WindowsApps/Microsoft.MinecraftUWP_1.0.20.0_x64__8wekyb3d8bbwe/data/resource_packs/vanilla/ui/ui_template_toggles.json
pool 644 0/0 23160 Program
Files/WindowsApps/Microsoft.MinecraftUWP_1.0.20.0_x64__8wekyb3d8bbwe/data/resource_packs/vanilla/ui/world_templates_screen.json
pool 644 0/0 6236 Program
Files/WindowsApps/Microsoft.MinecraftUWP_1.0.20.0_x64__8wekyb3d8bbwe/data/resource_packs/vanilla/ui/xbl_failed.json
pool 644 0/0 5523 Program
Files/WindowsApps/Microsoft.MinecraftUWP_1.0.20.0_x64__8wekyb3d8bbwe/data/resource_packs/vanilla/ui/xbl_first_launch.json
pool 644 0/0 5980 Program
Files/WindowsApps/Microsoft.MinecraftUWP_1.0.20.0_x64__8wekyb3d8bbwe/data/resource_packs/vanilla/ui/xbl_optional_signin.json
pool 644 0/0 2796 Program
Files/WindowsApps/Microsoft.MinecraftUWP_1.0.20.0_x64__8wekyb3d8bbwe/data/resource_packs/vanilla/ui/_ui_defs.json
create 755 0/0 0 Program
Files/WindowsApps/Microsoft.MinecraftUWP_1.0.20.0_x64__8wekyb3d8bbwe/data/resource_packs/vanilla_music
pool 644 0/0 440 Program
Files/WindowsApps/Microsoft.MinecraftUWP_1.0.20.0_x64__8wekyb3d8bbwe/data/resource_packs/vanilla_music/pack_manifest.json
create 755 0/0 0 Program
Files/WindowsApps/Microsoft.MinecraftUWP_1.0.20.0_x64__8wekyb3d8bbwe/data/resource_packs/vanilla_music/sounds
create 755 0/0 0 Program
Files/WindowsApps/Microsoft.MinecraftUWP_1.0.20.0_x64__8wekyb3d8bbwe/data/resource_packs/vanilla_music/sounds/music
create 755 0/0 0 Program
Files/WindowsApps/Microsoft.MinecraftUWP_1.0.20.0_x64__8wekyb3d8bbwe/data/resource_packs/vanilla_music/sounds/music/game
pool 644 0/0 2530812 Program
Files/WindowsApps/Microsoft.MinecraftUWP_1.0.20.0_x64__8wekyb3d8bbwe/data/resource_packs/vanilla_music/sounds/music/game/calm1.ogg
pool 644 0/0 1976731 Program
Files/WindowsApps/Microsoft.MinecraftUWP_1.0.20.0_x64__8wekyb3d8bbwe/data/resource_packs/vanilla_music/sounds/music/game/calm2.ogg
pool 644 0/0 2232651 Program
Files/WindowsApps/Microsoft.MinecraftUWP_1.0.20.0_x64__8wekyb3d8bbwe/data/resource_packs/vanilla_music/sounds/music/game/calm3.ogg
I excluded the “Program Files” directory, so not sure why it is still backing up. I also checked the backup location and it is indeed backing up these files. Any ideas?
Smbclient -V
Version 4.5.10
Fedora 25 OS
Command being ran.
/usr/bin/smbclient \\l-jwest17b.corpnet.com [1]\C$ -U corpnet\backup -E -d 1 -c tarmode full -TcrX – /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/*/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/lxss /Users/*/AppData/Local/History /Users/*/AppData/Local/Temporary Internet Files /Users/*/Documents/My Music /Users/*/Documents/My Pictures /Users/*/Documents/My Videos /Users/*/AppData/Local/Microsoft/Windows/Temporary Internet Files /Users/*/AppData/Local/Temp /Users/*/NTUSER.DAT* /Users/*/ntuser.dat* /Users/*/AppData/Local/Microsoft/Windows/UsrClass.dat* /Users/*/AppData/Local/Microsoft/Windows Defender/FileTracker /Users/*/AppData/Local/Microsoft/Windows/Explorer/thumbcache_*.db /Users/*/AppData/Local/Microsoft/Windows/WER /Users/*/AppData/Local/Mozilla/Firefox/Profiles/*/Cache /Users/*/AppData/Local/Mozilla/Firefox/Profiles/*/OfflineCache /Users/*/AppData/Roaming/Microsoft/Windows/Cookies /Users/*/AppData/Roaming/Microsoft/Windows/Recent ProgramData/Microsoft/Search ProgramData/Microsoft/Windows Defender .lock .so Thumbs.db IconCache.db Cache cache /Program Files /Windows /$Recycle.Bin /MSOCache /System Volume Information /Boot /autoexec.bat /bootmgr /BOOTSECT.BAK /config.sys /hiberfil.sys /pagefile.sys
Jeff West Systems Engineer Riptide Software Office 321-296-7724 ext 216 [2] Direct 407-542-7697 [3] Cell 407-925-7030 [4] www.riptidesoftware.com [5]
I believe you'll find the key to the discrepancy by comparing the logs to the exclusions. Let's have a look. The exclude is:
Files/WindowsApps/Microsoft.MinecraftUWP_1.0.20.0_x64__8wekyb3d8bbwe/data/resource_packs/vanilla/ui/ui_template_toggles.json
1) Noting the lack of a leading slash in the logs, it may make sense to remove the leading slash in the excludes and give it a whirl
2) I also note the unfortunate space in “Program Files” — if every other exclude is behaving as expected, then it may be that smbclient is interpreting this as “exclude \Program and exclude Files” which isn't having the desired effect. If this is the case, you might want to try “\Program*Files” instead, which will pick up directories with similar names, but will identify the issue.