我有rsync和–link-dest的磁盘使用问题
增量备份占用了完整的磁盘空间:
@localhost media]$ls
orig
----------------------------------------------------
localhost media]$du -sh .
25M .
----------------------------------------------------
localhost media]$rsync -avh orig/ full
----------------------------------------------------
@localhost media]$du -sh .
49M .
----------------------------------------------------
localhost media]$echo 1111 > orig/foo111
----------------------------------------------------
localhost media]$rsync -avh --link-dest=full orig/ orig_1
----------------------------------------------------
localhost media]$ls orig_1/foo111
orig_1/foo111
_____________________________________________________
localhost media]$ls full/foo111
ls: cannot access full/foo111: No such file or directory
到目前为止一切看起来都很好.最新的变化反映在orig_1中
但这些目录没有硬连接,而且它们都是全尺寸的.
-----------------------------------------------------
localhost media]$du -sh .
74M .
---------------------------------------------
localhost media]$du -sh orig_1/
25M orig_1/
--------------------------------------------
localhost media]$du -sh orig
25M orig
---------------------------------------------
localhost media]$du -sh full
25M full
我想我的orig_1大小为0吗? stat命令显示没有硬链接.我究竟做错了什么?