weird result when using --link-dest
jannehson51 at yahoo.com
Tue Mar 29 06:22:10 MDT 2011
Here are the results that you asked for
du -s /tmp/full_20110329_122743 /tmp/20110329_125251
du -s /tmp/20110329_125251 /tmp/full_20110329_122743
du -s /tmp/full_20110329_122743
du -s /tmp/20110329_125251
So it is "du" that is fooling me? Very interesting
--- On Tue, 3/29/11, Tony Abernethy <tony at servasoftware.com> wrote:
> From: Tony Abernethy <tony at servasoftware.com>
> Subject: RE: weird result when using --link-dest
> To: "Janne H" <jannehson51 at yahoo.com>, "rsync at lists.samba.org" <rsync at lists.samba.org>
> Date: Tuesday, March 29, 2011, 12:07 PM
> Thanks for the detail.
> du -s /tmp/full_20110329_122743 /tmp/20110329_122743
> du -s /tmp/20110329_122743 /tmp/full_20110329_122743
> du -s /tmp/full_20110329_122743
> du -s /tmp/20110329_122743
> Technically, the directories have entries which point to
> the inodes which are in fact the files.
> When you delete one of these, either of these, you will not
> save much space.
> -----Original Message-----
> From: rsync-bounces at lists.samba.org
> [mailto:rsync-bounces at lists.samba.org]
> On Behalf Of Janne H
> Sent: Tuesday, March 29, 2011 7:01 AM
> To: rsync at lists.samba.org
> Subject: weird result when using --link-dest
> I create one full backup, then another backup based on
> that, using --link-dest to reduce the size of the following
> backups, but the result is very suprising. the full backup
> seems to be reduzed in size!!
> I've reduced the commands to the bare minimum that still
> procduces the str.
> ange result.
> mkdir -p /tmp/full_20110329_122743
> mkdir -p /tmp/20110329_125251
> rsync --archive -e "ssh" server:/var/webdir/
> du -s /tmp/*20110329*
> 18272 /tmp/full_20110329_122743
> 12 /tmp/20110329_125251
> rsync --archive -e "ssh" --link-dest
> /tmp/full_20110329_122743 server:/var/webdir
> du -s /tmp/*20110329*
> 18272 /tmp/20110329_125251
> 532 /tmp/full_20110329_122743
> I thought /tmp/full_20110329_122743 would be of size 18272
> and not the other way?
> Can someone help me spot the error?
> Please use reply-all for most replies to avoid omitting the
> mailing list.
> To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
More information about the rsync