[Bug 7129] rsync 3.0.7 - unlink failed (21) - unable to delete directory

samba-bugs at samba.org samba-bugs at samba.org
Thu Sep 19 12:05:35 CEST 2013


https://bugzilla.samba.org/show_bug.cgi?id=7129

--- Comment #9 from basti <bastian-samba-rsync-bugzilla at t6l.de> 2013-09-19 10:05:33 UTC ---
Just for Info

I have hit this bug on debian 7.1, when creating a backup of my rsnapshot
backup.
I need to preserve hard links for this.
"""
% rsync --version
rsync  version 3.0.9  protocol version 30
% rsync -aH $SRC $DST
"""

Error message is:
"""
rsync: unlink "/mnt/backup/rsnapshot/root/daily.1/host/home/user/.psi" failed:
Is a directory
"""

In my case this is triggered, when a directory became a link or vice versa:
"""
% cd /mnt/backup/rsnapshot/root
% stat */host/home/user/.psi | grep -E '(File|Size)'
  File: `daily.0/host/home/user/.psi'
  Size: 4096          Blocks: 8          IO Block: 4096   directory
  File: `daily.1/host/home/user/.psi'
  Size: 4096          Blocks: 8          IO Block: 4096   directory
  File: `daily.2/host/home/user/.psi'
  Size: 4096          Blocks: 8          IO Block: 4096   directory
  File: `daily.3/host/home/user/.psi'
  Size: 4096          Blocks: 8          IO Block: 4096   directory
  File: `daily.4/host/home/user/.psi'
  Size: 4096          Blocks: 8          IO Block: 4096   directory
  File: `daily.5/host/home/user/.psi'
  Size: 4096          Blocks: 8          IO Block: 4096   directory
  File: `daily.6/host/home/user/.psi'
  Size: 4096          Blocks: 8          IO Block: 4096   directory
  File: `monthly.0/host/home/user/.psi'
  Size: 4096          Blocks: 8          IO Block: 4096   directory
  File: `monthly.1/host/home/user/.psi'
  Size: 4096          Blocks: 8          IO Block: 4096   directory
  File: `monthly.2/host/home/user/.psi' -> `fuse/mnt/private/rc/psi'
  Size: 23            Blocks: 0          IO Block: 4096   symbolic link
  File: `monthly.3/host/home/user/.psi' -> `fuse/mnt/private/rc/psi'
  Size: 23            Blocks: 0          IO Block: 4096   symbolic link
  File: `monthly.4/host/home/user/.psi' -> `fuse/mnt/private/rc/psi'
  Size: 23            Blocks: 0          IO Block: 4096   symbolic link
  File: `monthly.5/host/home/user/.psi' -> `fuse/mnt/private/rc/psi'
  Size: 23            Blocks: 0          IO Block: 4096   symbolic link
  File: `weekly.0/host/home/user/.psi'
  Size: 4096          Blocks: 8          IO Block: 4096   directory
  File: `weekly.1/host/home/user/.psi'
  Size: 4096          Blocks: 8          IO Block: 4096   directory
  File: `weekly.2/host/home/user/.psi'
  Size: 4096          Blocks: 8          IO Block: 4096   directory
  File: `weekly.3/host/home/user/.psi'
  Size: 4096          Blocks: 8          IO Block: 4096   directory

"""


Solution was, as descibed above, to run latest rsync code. I cloned from git
and compiled v3.0.3-568-g60cc5d4
"""
% /opt/rsync/local/bin/rsync --version
rsync  version 3.1.0pre1  protocol version 31.PR14
"""


Now, these unlink problems dont exist anymore.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the rsync mailing list