KDE Kup Backup 无法读取我的主文件夹,无法索引所有内容

KDE Kup Backup 无法读取我的主文件夹,无法索引所有内容

我正在尝试备份到我的辅助 1TB 硬盘。我收到以下错误消息:

Kup is starting bup backup job at Saturday, August 6, 2022 11:20:03 PM MST

bup "-d" "/media/krillavilla/1 TB Secondary" "init"
bup "-d" "/media/krillavilla/1 TB Secondary" "index" "-u" "--exclude" "/home/krillavilla/.cache" "--exclude" "/home/krillavilla/.local/share/Trash" "--exclude" "/home/krillavilla/.local/share/baloo" "--exclude-rx-from" "/home/krillavilla/" "/home/krillavilla"
usage: bup index <-p|-m|-s|-u|--clear|--check> [options...] <filenames...>

Modes:
    -p, --print           print the index entries for the given names
                            (also works with -u)
    -m, --modified        print only added/deleted/modified files
                            (implies -p)
    -s, --status          print each filename with a status char
                            (A/M/D) (implies -p)
    -u, --update          recursively update the index entries for the
                            given file/dir names (default if no mode
                            is specified)
    --check               carefully check index file integrity
    --clear               clear the default index

Options:
    -H, --hash            print the hash for each object next to its
                            name
    -l, --long            print more information about each file
    --no-check-device     don't invalidate an entry if the containing
                            device changes
    --fake-valid          mark all index entries as up-to-date even if
                            they aren't
    --fake-invalid        mark all index entries as invalid
    -f, --indexfile ...   the name of the index file (normally
                            BUP_DIR/bupindex)
    --exclude ...         a path to exclude from the backup (may be
                            repeated)
    --exclude-from ...    skip --exclude paths in file (may be
                            repeated)
    --exclude-rx ...      skip paths matching the unanchored regex
                            (may be repeated)
    --exclude-rx-from ...  skip --exclude-rx patterns in file (may be
                            repeated)
    -v, --verbose         increase log output (can be used more than
                            once)
    -x, --xdev, --one-file-system  don't cross filesystem boundaries

error: couldn't read '/home/krillavilla/'

Exit code: 97
Kup did not successfully complete the bup backup job: failed to index everything.

我找不到与此问题相关的任何文章。

答案1

我也遇到过同样的问题;这就是我为什么想到这个问题的原因。由于现有答案中没有具体的解决方案,我稍微调整了一下配置。我可以自信地说,当我们关闭/禁用那个设定 ”根据模式排除文件和文件夹",这个错误就消失了。

即不要启用高级配置下的模式选项!
即当您检查日志文件时,您不应该--exclude-rx-from在执行的命令中看到。

就 .config/kuprc 文件而言,如果存在此条目,则应将其删除:

Exclude patterns=true

答案2

我删除了旧备份计划后,又启动了新备份计划。尽管我在日志中看到错误消息,但备份成功了:

Kup is starting bup backup job at Saturday, August 6, 2022 11:47:23 PM MST

bup "-d" "/media/krillavilla/1 TB Secondary" "init"
bup "-d" "/media/krillavilla/1 TB Secondary" "index" "-u" "/home"
Exit code: 0
bup "-d" "/media/krillavilla/1 TB Secondary" "save" "-n" "kup" "-vv" "/home"
b'/home/krillavilla/.config/google-chrome/Profile 2/IndexedDB/https_docs.google.com_0.indexeddb.blob/3/1e/1e7f': [Errno 2] No such file or directory: '/home/krillavilla/.config/google-chrome/Profile 2/IndexedDB/https_docs.google.com_0.indexeddb.blob/3/1e/1e7f'
Saving: 100.00% (147295054/147295054k, 566180/566180 files), done.    
WARNING: 1 errors encountered while saving.
Exit code: 1
Only harmless errors detected by Kup.
Kup successfully completed the bup backup job at Sunday, August 7, 2022 12:21:51 AM MST

相关内容