dest linux使用方法,linux – rsync和–link-dest的磁盘使用问题

我有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命令显示没有硬链接.我究竟做错了什么?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值