Re: Can unison better help with renamed hosts?

"Dale R. Worley" <[email protected]> Mon, 22 Apr 2024 13:49:50 -0400
Newsgroups gmane.network.unison.general
Message-ID <[email protected]>
"'Mario Emmenlauer' via unison-users" <[email protected]>
writes:
> I guess my main problem is that I do not necessarily know the old and new
> host names that unison considers a host to have. As an example, a machine
> that I sync is known through various means:

I haven't used Unison in a number of years, but my memory is that the
old host name can be found by looking at the first few lines of the ar*
file (as gdt says).  I have a vague memory that Unison tells you what
host names it is using when it starts a run.

I do remember a gripe about this, though:  There's no clean way to
*rename* a Unison archive to account for a host name change.  You want
to be able to say "take the archive that syncs OLDFOO and OLDBAR, rename
the ar* files properly to sync NEWFOO and NEWBAR, and rewrite the first
lines of the ar* files to match".  Otherwise, a one-time host rename can
leave you using rootalias forever.

Dale

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