--link-dest isn't linking

darxus at chaosreigns.com darxus at chaosreigns.com
Sun Apr 22 11:00:16 MDT 2012

rsync -Ha --link-dest=/media/4tb/bak/panic-2012-01-01 /media/2tb/bak/panic-2012-02-01 /media/4tb/bak/

root at dancer:/media/4tb/bak# ls -l panic*/home/darxus/0000_latest.jpg
-rw------- 15 darxus darxus 100772 1999-09-14 21:19 panic-2011-12-20/home/darxus/0000_latest.jpg
-rw------- 15 darxus darxus 100772 1999-09-14 21:19 panic-2012-01-01/home/darxus/0000_latest.jpg
-rw-------  1 darxus darxus 100772 1999-09-14 21:19 panic-2012-02-01/home/darxus/0000_latest.jpg

Why isn't it hard linking?  This is driving me nuts.

When I do --itemize-changes, for that file, it says:
>f+++++++++ panic-2012-02-01/home/darxus/0000_latest.jpg

<@BasketCase> that shows the file isn't found
< Darxus> Okay.  I think I've pasted enough to show that it's there?
<@BasketCase> it does seem strange

I created some test files and verified that rsync -Ha --link-dest did
correctly hard link those test files on that partition.

# rsync --version
rsync  version 3.0.8  protocol version 30

# lsb_release -a
Description:  Ubuntu 11.10
Codename: oneiric

It's an ext4 partition on a 4tb software raid0 composed of 2 2tb drives,
which I just set up yesterday.  Pretty sure none of that is relevant.

"I'd rather be happy than right any day."
- Slartiblartfast, The Hitchhiker's Guide to the Galaxy

More information about the rsync mailing list