文件历史记录 - 无法扫描用户库中的更改并执行修改文件的备份以进行配置

azl*_*azl 6 backup windows-8 file-history windows-10

当尝试在 Windows 8 中运行文件历史记录工具时,它会运行大约 2 秒然后停止。没有文件备份到所选驱动器。

\n

在事件查看器中出现的唯一错误是事件 ID #201:

\n
Unable to scan user libraries for changes and perform backup of modified files \nfor configuration\nC:\\Users\\win8User\\AppData\\Local\\Microsoft\\Windows\\FileHistory\\Configuration\\Config\n
Run Code Online (Sandbox Code Playgroud)\n

或德语

\n
Die Benutzerbibliotheken konnten nicht auf \xc3\x84nderungen \xc3\xbcberpr\xc3\xbcft werden,\nund ge\xc3\xa4nderte Dateien f\xc3\xbcr die Konfiguration \n"C:\\Users\\win11User\\AppData\\Local\\Microsoft\\Windows\\FileHistory\\Configuration\\Config" \nkonnten nicht gesichert werden.\n
Run Code Online (Sandbox Code Playgroud)\n

我尝试删除目标驱动器上的配置文件和 FileHistory 目录。再次设置文件历史记录会导致相同的错误。

\n

有没有更好的方法来追踪导致失败的原因?或者以某种方式使用文件历史记录工具创建更详细的日志文件来显示导致问题的原因?

\n

app*_*e16 2

这就是我所做的。我不确定所有这些步骤是否必要,但我只是想确定一下。

1.

Control panel-> File history-> Advanced Settings->Open file history event logs并修复/删除所有弄乱文件历史记录的文件。对我来说,这个文件夹中有一堆:

AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_explorer.exe xxxxx
Run Code Online (Sandbox Code Playgroud)

我删除了它们。他们看起来并不重要。

2. 我编写了一个快速的 python 脚本来查找名称中包含非 ASCII 字符的任何文件。我手动重命名了所有这些。这可能就是某些音乐文件夹上的文件历史记录失败的原因!

import os,string
import sys

validChars='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ. #^=!()&,_\'-+@%[]{$};`~'

for currdir,folders,filenames in os.walk(r'C:\Users\<username>'):

    //Max filename len on ntfs is 255, but file history adds "F:\FileHistory\<username>\<computer name>\Data" to the front the files and a timestamp to the end so the file really needs to be less than 200 to be safe
    if len(currdir)>200:
        print 200,currdir

    if filter(lambda x: x in validChars, currdir[2:].replace('\\',''))!=currdir[2:].replace('\\',''):
        print 'chars',currdir,

    for filename in filenames:
        if filter(lambda x: x in validChars, filename)!=filename:
            print 'char2',os.path.join(currdir,filename)
Run Code Online (Sandbox Code Playgroud)

编辑:不要删除 Autodesk Inventor 文件,它会破坏 Autodesk。奥奥

3.

文件历史记录 -> 选择驱动器 -> (选择您的驱动器) -> (选择您的最新备份) -> 文件历史记录会给出一些有关您的最新备份不在该驱动器上的警告。我单击“确定”。