Re: Possible bug?

Greg Troxel <[email protected]> Sun, 24 Aug 2025 07:29:50 -0400
Newsgroups gmane.network.unison.general
Message-ID <[email protected]>
"Head Geek (伟思礼)" <[email protected]> writes:

> A puzzling phenomenon:
>
> I run some PHP apps on a couple of remote servers and use unison to sync local copies.
>
> Two of the apps have upgrade code that creates temporary directories but doesn't delete them when finished.
>
> When I run unison to sync, instead of creating those directories on the local copy, it deletes them from the remote server.
>
> Since they represent a change that happened on the server, I would expect that change to be repeated locally.
>
> Deleting them does not break the PHP apps, but it still seems like incorrect behavior.

That is odd.  If this isn't the latest release or the tip of master, you
should upgrade and try again, even if that isn't super likely to change
anything, assuming your version is not very old.

I wonder if the directories have ever been created and removed on the
local machine.

I wonder if they are empty after the upgrade process.

You didn't mention OS, filesystems, use of NFS/CIFS, etc.

It would be great if you could turn this into a reproduction script, and
of course trying may cause you to figure out something else about the
situation, which currently has a lot of unknowns.

We really should have a facility to print out the archive files.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].