从用户文件夹备份中排除哪些文件,文件类型和文件夹?


Answers:


13

Java的正则表达式格式(从一些数据CrashPlan排除和其他未列明的排除从CrashPlan的my.service.xml文件):

所有:

Default from CrashPlan: 
.*/(?:42|\d{8,}).*/(?:cp|~).*
(?i).*/CrashPlan.*/(?:cache|log|conf|manifest|upgrade)/.*
.*\.part
.*/iPhoto Library/iPod Photo Cache/.*
.*\.cprestoretmp.*
.*/Music/Subscription/.*
(?i).*/Google/Chrome/.*cache.*
(?i).*/Mozilla/Firefox/.*cache.*
.*/Google/Chrome/Safe Browsing.* 
.*/(cookies|permissions).sqllite(-.{3})?

Extra not in CrashPlan by default:
(?i).*\.(class|obj)
(?i).*\.(tmp|temp|cache|part|rbf|chk|dov) <-- temporary files
(?i).*\.(bac|bak|bkp|bup|back|dmp|dump|err|log|old|prv) <-- backup files
(?i).*\.(asd|wbk|xlk|bde|bdi|bdm|bmb|bom|crc|m\_p|bdb|bks|bps|mch|sol|idb|nch) <-- program specific backup/temporary files
(?i).*\.(bmk|chw|ftg|fts|gid|hhc|hhk) <-- help index files
(?i).*\.cache.*
:/Config\\.Msi.*
.*/Google/Chrome/.* <-- if using Chrome Sync
.*/Google/(Drive|CrashReports)/.*
(?i).*/(Google Drive|LocalGoogle)/.*
.*/Dropbox/.*
.*/.*SkyDrive.*/.*
.*/(My Cubby|cubby)/.*
(?i).*/Cookies/.*
(?i).*/Downloads/.*
(?i).*/.*cache.*/.*
(?i).*/.*log.*/.*

视窗:

Default from CrashPlan:
.:/ProgramData/
.*Thumbs\.db
.*/Local Settings/History/
.*/NetHood/
.*/PrintHood/
.*/Cookies/
.*/Recent/
.*/SendTo/
.*/LocalService/
.*/NetworkService/
.*/Start Menu/
(?i).*/NTUSER.*
(?i).:/WINDOWS/
(?i).:/autoexec.bat
.*\$RECYCLE\.BIN/.*
.*/System Volume Information/.*
.*/RECYCLER/.*
.*/I386.*
.*/pagefile.sys
.*/MSOCache.*
.*UsrClass\.dat\.LOG
.*UsrClass\.dat
.*/Temporary Internet Files/.*
(?i).*/ntuser.dat.*
.*/Local Settings/Temp.*
.*/AppData/Local/Temp.*
.*/AppData/Temp.*
.*/Windows/Temp.*
(?i).*/Microsoft.*/Windows/.*\.log
.*/Microsoft.*/Windows/Cookies.*
.*/Microsoft.*/RecoveryStore.*
(?i).:/Config\\.Msi.*
(?i).*\\.rbf
.*/Windows/Installer.*
.*/Application Data/Application Data.*
(?i).:/Config\.Msi.*
(?i).*\.rbf
(?i).*/Microsoft.*/Windows/.*\.edb 
(?i).*/Google/Chrome/User Data/Default/Cookies(-journal)?
(?i).*/Safari/Library/Caches/.*
(?i).*/(Application Data|AppData)/Apple Computer/Mobile Sync/.*
.*\.tmp
.*\.tmp/.*

Extra not in CrashPlan by default:
.*/hiberfil.sys
.*/swapfile.sys
.*/Local Settings/History/.*
(?i).*\$RECYCLE\.BIN/.*
(?i).*/Windows/.*
.*/(Program Files|Program Files \(x86\))/.*
.*/AppData/Local/Packages/.* <- this really still needs to be figured out as per http://superuser.com/questions/490925/explain-windows-8-windows-store-appdata-packages-and-what-to-backup
.*/AppData/Local/Microsoft/Windows Store/.*
.*/NetHood/.*
.*/PrintHood/.*
.*/Cookies/.*
.*/Recent/.*
.*/SendTo/.*
.*/LocalService/.*
.*/NetworkService/.*
.*/AppData/LocalLow/.*
.*/Internet Explorer/.*

苹果电脑:

Default from CrashPlan:
/bin/
/etc/
/sbin/
/usr/
/sw/
/System/
/private/
/dev/.*
.*\.Trash.*
/\.vol/.*
/mach.sym
/mach_kernel
.*\.hotfiles\.btree.*
.*/Trash/.*
.*/Network Trash Folder/.*
.*/VM Storage
.*\.fseventsd.*
.*/Library/Caches/.*
.*\.Spotlight-.*/.*
/Network/.*
/tmp/.*
/cores/.*
/afs/.*
/automount/.*
/private/Network/.*
/private/tmp/.*
/private/var/tmp/.*
/private/var/folders/.*
/private/var/run/.*
/private/var/spool/postfix/.*
/private/var/vm/.*
/Previous Systems.*
.*/lost\+found/.*
.*/Microsoft User Data/Entourage Temp/.*
.*/iP.* Software Updates/.*
.*/Library/Application Support/SyncServices/.*
.*/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
.*/Library/Calendars/Calendar Cache
.*/iTunes/Album Artwork/Cache/.*
.*/iPhoto Library/iPod Photo Cache.*
(?i).*/backups.backupdb/.*
/Desktop DB
/Desktop DF
/Network/Servers.*
/Users/Shared/SC Info.*
/net/.*
/private/var/automount/.*
/private/var/db/dhcpclient/.*
/private/var/db/fseventsd/.*
/System/Library/Extensions/Caches/.*
.*Mobile.*Backups/.*
.*/Library/Saved Application State/.*
.*/Library/Mail/.*/Info.plist
.*/Library/Calendars/.*/Info.plist 
.*/Application Support/Google/Chrome/Default/Cookies(-journal)?
.*/Library/Cookies/(Cookies.binarycookies|com.apple.appstore.plist)

Linux:

Default from CrashPlan:
/bin/a
/boot/
/etc/
/initrd/
/lib/
/opt/
/sbin/
/usr/
/var/
/srv/
/sys/.*
/dev/.*
/proc/.*
/tmp/.*
.*/lost\+found/.*
/selinux/.* 
.*/.config/google-chrome/Default/Cookies(-journal)?

Extra not in CrashPlan by default:
(?i).*\~

Solaris:

Default from CrashPlan:
/bin/
/boot/
/etc/
/initrd/
/lib/
/opt/
/sbin/
/usr/
/var/
/srv/
/sys/.*
/dev/.*
/proc/.*
/tmp/.*
.*/lost\+found/.*
.*/.config/google-chrome/Default/Cookies(-journal)?

如果我的任何正则表达式都可以简化,请修复它们!
bbodenmiller

从ehow.com/about_6565278_type-files-can-deleted_.html中添加了一些详细信息
bbodenmiller 2012年

这当然非常有用,但是我想知道是否有人可以对每行(或相似行的组)发表评论,以解释我们实际上在此处排除的内容以及原因。-举一个例子:我可以看到为什么完全排除ProgramData可能有意义。但是我认为这也可能有点冒险,因为它可能包含一些(非特定于用户的)应用程序数据,对吗?因此,一些注释可能会帮助人们针对其目的自定义列表。
Christoph

@Christoph,不幸的是,默认情况下Crashplan不包含C:\ ProgramData \。猜猜那个文件夹里有什么?这个xml文件!(我将正则表达式添加到了排除列表中,并且删除了所有自定义正则表达式。没有Crashplan的备份。幸运的是,我是OCD工程师,我还用Acronis True Image在本地备份了它
Clay Nichols,

看起来有一个错误(2年后)。在“全部”下,此条目中.*/(cookies|permissions).sqllite(-.{3})?有两个l(小写L.sqlite
john v kumpf

1

Linux:以〜结尾的所有内容(来自多个编辑器的备份)。并“优化”您的正则表达式,只是一个简短的示例:

(?i).*\.(tmp|temp|part|bak|\~)

这不是搜索“。〜”而不是“ blahfile〜”的结果吗?
bbodenmiller 2012年

糟糕-没错,我没搞清楚那部分。目的是避免如何组合正则表达式。但是您绝对是正确的:\~那里的零件是错误的,必须放在单独的行中。
Izzy 2012年

0

经过仔细检查,我还排除了%APPDATA%下与以下任何正则表达式匹配(忽略大小写)的文件:

  • 缓存文件
/Mozilla/.*/Cache
/MicrosoftEdge/Cache
/Chrome/.*/Cache
/Default/Media Cache
/GoogleEarth/unified_cache
/AppData/Local/Temp
/MicrosoftEdge/.*/Cache
/Skype/.*/emo_cache
/Device Metadata/dmrccache$
/cache$
/INetCache$
/LocalCache$
/Package Cache$
/WebCache$
/OfficeFileCache$
/CryptnetUrlCache$
/AppCache$
/IECompatCache$
/WebServiceCache$
/IECompatUaCache$
  • 日志文件
/logs$
/log$
  • 系统档案
/AppData/Local/Microsoft/Windows$
/AppData/Local/Microsoft/Device Stage$
  • 临时文件
/temp$
/temporary[^/]*$

https://forum.duplicati.com/t/common-exclusions-and-inclusions-from-appdata/807上也有关于此主题的讨论。这些列表出现在这里。注意:似乎他们使用通用的正则表达式,但是却不小心逃脱文字点):

.*/AppData/Local/Temp.*
.*/AppData/Temp.*

.*/AppData\Local\Microsoft\Windows\Notifications\WPNPRMRY.tmp
.*/AppData\Local\Microsoft\Windows\UsrClass.dat.LOG1
.*/AppData\Local\Microsoft\Windows\UsrClass.dat.LOG2
.*/AppData\Local\Microsoft\Windows\WebCache\WebCacheV01.dat
.*/AppData\Roaming\Skype\your.skypename\main.lock
.*/AppData\Local\Google\Drive\lockfile
.*/AppData\Local\Microsoft\Internet Explorer\Recovery\High\Active*.dat
.*/AppData\Roaming\Mozilla\Firefox\Profiles\<profile>.default\parent.lock
.*/AppData\Local\Google\Chrome\User Data\Default\Current Session
.*/AppData\Local\Google\Chrome\User Data\Default\Current Tabs
.*/AppData\Local\Google\Chrome\User Data\lockfile

*.part
*.tmp
*.ost
hiberfil.sys
pagefile.sys
swapfile.sys
*\UsrClass.dat*
*\ntuser.dat*
$Recycle.Bin\
Windows\
MSOCache\
*System Volume Information*\
*\AppData\*\Temp\
*\AppData\*\Internet Explorer\
*\AppData\*\Microsoft\*\WebCache\
*\AppData\*\Microsoft\*\INetCache*\
*\AppData\*\Microsoft\Office\*\OfficeFileCache\
*\Temporary Internet Files\
*\Firefox\Profiles\*\*cache*\
*\Microsoft\Windows Defender*\
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.