sudo / --link-dest combination problem.

simon allfrey sallfrey at physics.ucla.edu
Fri Jun 17 07:32:06 GMT 2005


Hi, using the attached script to implement an incremental rotating  
backup of my home directory
works fine if I run it myself, however if it is run as root the -- 
link-dest fails and all files are
recreated rather than linked to. Can someone explain the problem to me?

I'm using rsync version 2.6.5
on
Darwin Kernel Version 8.1.0 (OS X Tiger)

Thanks,
  Simon.


=======================================================================
rm -rf "/Volumes/Rotating backup/simonallfrey.6"
mv -f "/Volumes/Rotating backup/simonallfrey.5" "/Volumes/Rotating  
backup/simonallfrey.6"
mv -f "/Volumes/Rotating backup/simonallfrey.4" "/Volumes/Rotating  
backup/simonallfrey.5"
mv -f "/Volumes/Rotating backup/simonallfrey.3" "/Volumes/Rotating  
backup/simonallfrey.4"
mv -f "/Volumes/Rotating backup/simonallfrey.2" "/Volumes/Rotating  
backup/simonallfrey.3"
mv -f "/Volumes/Rotating backup/simonallfrey.1" "/Volumes/Rotating  
backup/simonallfrey.2"
mv -f "/Volumes/Rotating backup/simonallfrey.0" "/Volumes/Rotating  
backup/simonallfrey.1"
/usr/local/bin/rsync -a --eahfs --link-dest="/Volumes/Rotating backup/ 
simonallfrey.1" "/Users/simonallfrey" "/Volumes/Rotating backup/ 
simonallfrey.0/"
=======================================================================


More information about the rsync mailing list