我使用的是 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。
我对这一切还有哪些误解?谢谢。