Re: Possible bug?
Greg Troxel <[email protected]> Sun, 24 Aug 2025 14:01:14 -0400
| Newsgroups | gmane.network.unison.general |
|---|---|
| Message-ID | <[email protected]> |
"Head Geek (伟思礼)" <[email protected]> writes: >> I wonder if they are empty after the upgrade process. > > I suspect they are: the upgrade of webtrees unzips new files to a > temporary directory then moves them to their correct locations. The > other isn't actually an upgrade; it creates a destination directory > for uploads in the format named by the current year. In my opinion it > (Wordpress) should cxreate it if needed when an upload occurs. It would be good to inspect them before sync and assume as little as possible :-) > Does unison delete empty directories instead of synchronizing them? I > do occasionally remove empty directories, but I have run unison > several times since the last time I did that locally. I expect them to be synchronized. I did a few tests and it did it right. >> You didn't mention OS, filesystems, use of NFS/CIFS, etc. > > Local is the latest macOS, and remote is > Linux web17 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux > unison is version 2.53.7 (ocaml 5.2.0) local and version 2.52.1 (ocaml 4.13.1) on the webserver OK - you are up to date and not using Windows or CIFS. >> 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. > > I've put in a cronjob to remove empty directories daily at 03:23, but > the next time there's an upgrade (always triggered manually), I'll > delete the cron job and run unison with debug. The cronjob of course > risks a server-side error removing local files, but the saerver has > daily backups and the local has hourly, so I'm not worried. In fact, > unison has always had that risk. I would run unison before the update too, to make sure unison thinks things are synced. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].