备份你的备份软件数据、duplicati2备份报错的折腾

支付宝内搜索 9155838 即可领现金红包 每天都能领哦

我的备份有一些是用duplicati 2来备份的。一直用得好好的,昨天中午突然遇到同步错误了:
Found 2 files that are missing from the remote storage, please run repair

提示要修复,本以为点击一下修复就能搞定,却没想到不是我想的这么简单,继续提示错误:

The backup storage destination is missing data files. You can either enable `--rebuild-missing-dblock-files` or run the purge command to remove these files. The following files are missing: duplicati-e1d7b394080021567b4ba0be011443f62.dblock.zip.aes, duplicati-bb379b58e5942b404bc4c0cb8fb5c0b49.dblock.zip.aes

UserInformationException: The backup storage destination is missing data files. You can either enable `--rebuild-missing-dblock-files` or run the purge command to remove these files. The following files are missing: duplicati-e1d7b394080021567b4ba0be011443f62.dblock.zip.aes, duplicati-bb379b58e5942b404bc4c0cb8fb5c0b49.dblock.zip.aes

我就按提示去--rebuild-missing-dblock-files,还是报错:

Listing remote folder ...
Failed to perform cleanup for missing file: duplicati-e1d7b394080021567b4ba0be011443f62.dblock.zip.aes, message: Repair not possible, missing 546 blocks.
If you want to continue working with the database, you can use the "list-broken-files" and "purge-broken-files" commands to purge the missing data from the database and the remote storage. => Repair not possible, missing 546 blocks.
If you want to continue working with the database, you can use the "list-broken-files" and "purge-broken-files" commands to purge the missing data from the database and the remote storage.
Failed to perform cleanup for missing file: duplicati-bb379b58e5942b404bc4c0cb8fb5c0b49.dblock.zip.aes, message: Repair not possible, missing 543 blocks.
If you want to continue working with the database, you can use the "list-broken-files" and "purge-broken-files" commands to purge the missing data from the database and the remote storage. => Repair not possible, missing 543 blocks.
If you want to continue working with the database, you can use the "list-broken-files" and "purge-broken-files" commands to purge the missing data from the database and the remote storage.
Return code: 0

最开始不只是两个问题丢失吗?怎么现在五百多个块出问题了?

然后我就去做purge-broken-files,步骤如下:
点击进入Commandline

purge-broken-files选项设置
我自己摸索的,不知道有没有错。

如果不清空的话会报错:

操作 PurgeBrokenFiles 失败,报错:Filters are not supported for this operation => Filters are not supported for this operation
ErrorID: FiltersNotAllowedOnPurgeBrokenFiles
Filters are not supported for this operation
Return code: 100

设置好后执行,看起来好像可以了,搜到网上一些案例,做到这里基本就恢复了。但我的执行一段时间后又报错:

操作 PurgeBrokenFiles 失败,报错:Unable to start the purge process as there are 17677 orphan file(s) => Unable to start the purge process as there are 17677 orphan file(s)

ErrorID: CannotPurgeWithOrphans
Unable to start the purge process as there are 17677 orphan file(s)
Return code: 100

很恐怖,有一万多个孤立文件了,折腾了一整个下午,我也黔驴技穷了。

由于备份的资料比较多,很不想清除并重新重建,目前这情况让我很沮丧。
苦闷一阵后突然想到我有duplicati2的整个数据库的备份啊,而且有多个版本的备份,本次备份出问题前的上一个备份也有。

马上试试,彻底退出duplicati2,找出备份来把这次出错的数据库替换掉,再到远程删除今天备份的几百个数据包,接着启动duplicati2,看起来没异常,有戏,再颤抖的运行备份,经过两小时的备份,完美的又一次同步备份了,没出一点问题,开心,真是庆幸备份了的备份软件的数据。

反思:之前为省事,将上百万的文件一次性的放到一个备份里面,这是非常不合理的,而现在又没法改了,应该多弄几个备份,按需分配,每个备份配置的文件数不超过5万,大小不超过30G作为一个同步会更合适。

推荐文章

仅有 1 条评论
  1. 老张博客

    软件数据还要备份呀?

    老张博客 回复
发表新评论