tags 349674 upstream thanks Hello,
As reported in Debian bug #349674 which can be seen at
http://bugs.debian.org/349674
Unison has problems when the file system is removed from under it.
For example, here is the result of my experiment.
Setup: A USB drive is mounted at /media/fakehd0
/media/fakehd0/a and /tmp/b are directories
that have already been synchronised by unison
in the past.
Experiment:
Run the command
unison -batch -logfile /tmp/test.log /media/fakehd0/a /tmp/b
and unplug the USB drive from the machine before the
synchronisation can complete.
Result:
The files on /tmp/b that were not synchronised before
the unplugging are deleted.
In the logfile we see that there is an I/O error
recorded by unison before this problem occurs.
Real World Scenario:
USB and floppy media are known to fail "mysteriously"
while they are being used. A problem like that above
could lead to a "backup" procedure deleting files
instead of backing them up!
Possible solution:
unison should abort on I/O errors.
Thanks and regards,
Kapil.
--
signature.asc
Description: Digital signature

