bcpierce00 / unison

Unison file synchronizer
GNU General Public License v3.0
3.86k stars 224 forks source link

Reconsider gethostname/UNISONLOCALNAME vs stored name in .unison #1026

Open gdt opened 2 months ago

gdt commented 2 months ago

Currently unison uses the hostname archive names. This is problematic for hosts without stable names (e.g., those using dhcp without a local overrride to have the hostname as seen by gethostname(3) stable), and the UNISONLOCALNAME alternative appears too difficult in practice.

This ticket is to consider and perhaps implement alternatives, e.g.:

Also in scope for this issue is a tool to modify archive files to have a new name, given archives with an old name.

See also #1036 which is about keeping this sort of information bound to the replica instead of on the host that (currently) has the replica's filesystem.