3.0.2: make_bak_dir mkdir ...: File exists (17)

Jordan Russell jr-list-2008 at quo.to
Fri May 16 17:07:47 GMT 2008

Yesterday I upgraded rsync from 2.6.9 to 3.0.2 (as part of upgrading
Fedora 8 to Fedora 9). Today, I received these unexpected errors:

rsync: make_bak_dir mkdir "/backup/server/../server-before-5/var"
failed: File exists (17)
rsync: keep_backup failed: "/backup/server/var/lib/rpcbind/rpcbind.file"
-> "../server-before-5/var/lib/rpcbind/rpcbind.file": Success (0)
rsync: stat
"/backup/server/../server-before-5/var/lib/rpcbind/rpcbind.file" failed:
No such file or directory (2)

from a script that had worked flawlessly for years under rsync 2.6.x:

  BKPDIR=server-before-`date +%w`
  cd /backup
  rm -rf $BKPDIR
  mkdir -m 700 $BKPDIR
  cd /backup/server
  rsync -avHx --numeric-ids --delete --delete-excluded \
        --backup --backup-dir=../$BKPDIR \
	--exclude-from=/root/bin/backupserver.excludelist \
        root at server:/ .

Prior to the script being run, these files had been deleted from the
sender side:


along with the /var/lib/rpcbind directory.

Following the rsync run, the receiver side has:


i.e., only one of the deleted files was moved to the backup directory.

Any ideas?

Jordan Russell

More information about the rsync mailing list