![rsnapshot du 显示两个备份的大小存在巨大差异,rsnapshot-diff 显示它们之间没有任何变化](https://linux22.com/image/793596/rsnapshot%20du%20%E6%98%BE%E7%A4%BA%E4%B8%A4%E4%B8%AA%E5%A4%87%E4%BB%BD%E7%9A%84%E5%A4%A7%E5%B0%8F%E5%AD%98%E5%9C%A8%E5%B7%A8%E5%A4%A7%E5%B7%AE%E5%BC%82%EF%BC%8Crsnapshot-diff%20%E6%98%BE%E7%A4%BA%E5%AE%83%E4%BB%AC%E4%B9%8B%E9%97%B4%E6%B2%A1%E6%9C%89%E4%BB%BB%E4%BD%95%E5%8F%98%E5%8C%96.png)
我使用的是 Debian 12。我的备份驱动器已满,所以我想弄清楚是什么占用了这么多空间。不知何故,最近的备份不是 hourly.0,而是 hourly.20,而且是几天前的(“hourly” 不是每小时运行一次。)
以下是的前几行rsnapshot du
:
[~]# sudo rsnapshot du
6.0G /mnt/backupdrive/rsnapshot/hourly.20/
12G /mnt/backupdrive/rsnapshot/hourly.21/
214M /mnt/backupdrive/rsnapshot/hourly.22/
因此,在我看来,hourly.21 似乎增加了一些重要内容。但是:
sudo rsnapshot-diff -vis /mnt/backupdrive/rsnapshot/hourly.21/ /mnt/backupdrive/rsnapshot/hourly.22/
Comparing /mnt/backupdrive/rsnapshot/hourly.22 to /mnt/backupdrive/rsnapshot/hourly.21
Between /mnt/backupdrive/rsnapshot/hourly.22 and /mnt/backupdrive/rsnapshot/hourly.21:
0 were added, taking 0 bytes
0 were removed, saving 0 bytes
rsnapshot-diff
如果两组之间没有变化,我怎样才能找出占用了 12GB 的内容?
事实上,比较 hourly.20 与 hourly.22:
[~]# sudo rsnapshot-diff /mnt/backupdrive/rsnapshot/hourly.20/ /mnt/backupdrive/rsnapshot/hourly.22/
Comparing /mnt/backupdrive/rsnapshot/hourly.22 to /mnt/backupdrive/rsnapshot/hourly.20
Between /mnt/backupdrive/rsnapshot/hourly.22 and /mnt/backupdrive/rsnapshot/hourly.20:
0 were added, taking 0 bytes
275106 were removed, saving 11669420460 bytes
它说没有添加任何内容,只是删除了...但是 hourly.20 是 6GB,而 hourly.22 是 214MB。
这里有什么差异?为什么备份大小与文件差异不一致?
为了成为一个完美主义者,让我们检查一下 21 和 20:
[~]# sudo rsnapshot-diff /mnt/backupdrive/rsnapshot/hourly.20/ /mnt/backupdrive/rsnapshot/hourly.21/
Comparing /mnt/backupdrive/rsnapshot/hourly.21 to /mnt/backupdrive/rsnapshot/hourly.20
Between /mnt/backupdrive/rsnapshot/hourly.21 and /mnt/backupdrive/rsnapshot/hourly.20:
0 were added, taking 0 bytes
275106 were removed, saving 11669420460 bytes
因此,它表示 21 到 20 之间变化的字节数(大小减少了 5 GB)与 22 到 20 之间变化的字节数(大小增加了近 6 GB)相同,这与 21 与 22 相同相符,尽管据报道 21 几乎大了 12 GB。
我对这一切还有哪些误解?谢谢。