有没有办法将文件系统的当前状态与创建的备份中存储的状态进行比较dump
?
我最近的文件系统出现了一些严重损坏,我最近的备份是几个月前的。我想对两者进行比较,以便了解损坏的程度,并希望看到自备份以来发生了多少变化。
答案1
看看restore
命令。它有一个开关,-C
看起来就像您正在寻找的那样。
摘自恢复手册页
-C This mode allows comparison of files from a dump. Restore reads the
backup and compares its contents with files present on the disk. It
first changes its working directory to the root of the filesystem that
was dumped and compares the tape with the files in its new current
directory. See also the -L flag described below.