Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

One Bell System - it works.


computers / alt.os.linux / Re: Unison question - merging a file [solved]

SubjectAuthor
* Unison questionCarlos E.R.
+* Unison questionmarrgol
|`* Unison questionCarlos E.R.
| +- Unison questionmarrgol
| `* Unison questionmarrgol
|  `* Unison question [solved]Carlos E.R.
|   `- Unison question - merging a file [solved]Carlos E.R.
`* Unison questionCarlos E.R.
 `- Unison questionRich

1
Unison question

<g45lnjxceq.ln2@Telcontar.valinor>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2021&group=alt.os.linux#2021

  copy link   Newsgroups: alt.os.linux comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E.R.)
Newsgroups: alt.os.linux,comp.os.linux.misc
Subject: Unison question
Date: Fri, 7 Jul 2023 12:14:08 +0200
Lines: 15
Message-ID: <g45lnjxceq.ln2@Telcontar.valinor>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net KDt3pW/nNo6YVz+bvuMrRw6X/THBYeBJiHui1Apkyngfm7iQNC
X-Orig-Path: Telcontar.valinor!not-for-mail
Cancel-Lock: sha1:R9xMM4zCF7daZEQD0zOnoyH5BOc= sha256:gFWFRQ96dODeSk4ORIzK3Nxv9yF1UhV5ZobT9XGqTM0=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.9.1
Content-Language: es-ES, en-CA
 by: Carlos E.R. - Fri, 7 Jul 2023 10:14 UTC

Hi,

In unison profile, is there a way to say in the profile that a file
should always be copied in a certain direction, always the same direction?

https://en.wikipedia.org/wiki/Unison_(software)

I had a look at the manual, but did not see it.

/usr/share/doc/packages/unison/unison-manual.html

--
Cheers, Carlos.

Re: Unison question

<u88rn9$1a8v7$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2023&group=alt.os.linux#2023

  copy link   Newsgroups: alt.os.linux comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: marrgol@address.invalid (marrgol)
Newsgroups: alt.os.linux,comp.os.linux.misc
Subject: Re: Unison question
Date: Fri, 7 Jul 2023 13:08:25 +0200
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <u88rn9$1a8v7$1@dont-email.me>
References: <g45lnjxceq.ln2@Telcontar.valinor>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 7 Jul 2023 11:08:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="65cd8ca93d06d6d000b69907b7e00a6a";
logging-data="1385447"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+AB5blt3kkV2X0VtcZ7Ycq"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
Cancel-Lock: sha1:Tw/ewxH8x8GduoDdo51Pb5SuAFo=
Content-Language: en-US
In-Reply-To: <g45lnjxceq.ln2@Telcontar.valinor>
 by: marrgol - Fri, 7 Jul 2023 11:08 UTC

On 07/07/2023 at 12.14, Carlos E.R. wrote:
> In unison profile, is there a way to say in the profile that a file
> should always be copied in a certain direction, always the same direction?
>
> https://en.wikipedia.org/wiki/Unison_(software)
>
>
> I had a look at the manual, but did not see it.
>
> /usr/share/doc/packages/unison/unison-manual.html

Unless I misunderstand what you're after, there's:

"force xxx
Including the preference -force root causes Unison to resolve
all differences (even non-conflicting changes) in favor of root.
This effectively changes Unison from a synchronizer into
a mirroring utility."

--
mrg>

Re: Unison question

<jbalnjxvt5.ln2@Telcontar.valinor>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2024&group=alt.os.linux#2024

  copy link   Newsgroups: alt.os.linux comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E.R.)
Newsgroups: alt.os.linux,comp.os.linux.misc
Subject: Re: Unison question
Date: Fri, 7 Jul 2023 13:43:15 +0200
Lines: 27
Message-ID: <jbalnjxvt5.ln2@Telcontar.valinor>
References: <g45lnjxceq.ln2@Telcontar.valinor> <u88rn9$1a8v7$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net kXz4Q/KA2QwVAR1PME9/jAIMpPINFyaSqBGKpfIJNaD9PY3tOm
X-Orig-Path: Telcontar.valinor!not-for-mail
Cancel-Lock: sha1:csh0WmaiJ85LQUXlHdM+nHKFIAA= sha256:tU93igI3re/JJ/pMC3bFvNz/blVa5D+R45HU8zLAEFQ=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.9.1
Content-Language: es-ES, en-CA
In-Reply-To: <u88rn9$1a8v7$1@dont-email.me>
 by: Carlos E.R. - Fri, 7 Jul 2023 11:43 UTC

On 2023-07-07 13:08, marrgol wrote:
> On 07/07/2023 at 12.14, Carlos E.R. wrote:
>> In unison profile, is there a way to say in the profile that a file
>> should always be copied in a certain direction, always the same
>> direction?
>>
>> https://en.wikipedia.org/wiki/Unison_(software)
>>
>>
>> I had a look at the manual, but did not see it.
>>
>> /usr/share/doc/packages/unison/unison-manual.html
>
> Unless I misunderstand what you're after, there's:
>
> "force xxx
>   Including the preference -force root causes Unison to resolve
>   all differences (even non-conflicting changes) in favor of root.
>   This effectively changes Unison from a synchronizer into
>   a mirroring utility."

No, that affects all the files. I need this for a single file. All
others should follow normal rules.

--
Cheers, Carlos.

Re: Unison question

<2ealnjxvt5.ln2@Telcontar.valinor>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2025&group=alt.os.linux#2025

  copy link   Newsgroups: alt.os.linux comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E.R.)
Newsgroups: alt.os.linux,comp.os.linux.misc
Subject: Re: Unison question
Date: Fri, 7 Jul 2023 13:44:34 +0200
Lines: 21
Message-ID: <2ealnjxvt5.ln2@Telcontar.valinor>
References: <g45lnjxceq.ln2@Telcontar.valinor>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net S4IcLRVyRwLuL+1qio29CAEriLwbOM0csohhc7iHak5xYvpglZ
X-Orig-Path: Telcontar.valinor!not-for-mail
Cancel-Lock: sha1:sn/BnoKY4VCDApB4l0ACQx4e/uU= sha256:xPwbDxKwqtayjn1x6ru/2bfGY3GZtfFWJm/trTne2/8=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.9.1
Content-Language: es-ES, en-CA
In-Reply-To: <g45lnjxceq.ln2@Telcontar.valinor>
 by: Carlos E.R. - Fri, 7 Jul 2023 11:44 UTC

On 2023-07-07 12:14, Carlos E.R. wrote:
>
> Hi,
>
> In unison profile, is there a way to say in the profile that a file
> should always be copied in a certain direction, always the same direction?
>
> https://en.wikipedia.org/wiki/Unison_(software)
>
>
> I had a look at the manual, but did not see it.
>
> /usr/share/doc/packages/unison/unison-manual.html
>

Alternatively, perhaps run a custom external command each time a sync is
done.

--
Cheers, Carlos.

Re: Unison question

<u88vm5$1apje$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2026&group=alt.os.linux#2026

  copy link   Newsgroups: alt.os.linux comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: marrgol@address.invalid (marrgol)
Newsgroups: alt.os.linux,comp.os.linux.misc
Subject: Re: Unison question
Date: Fri, 7 Jul 2023 14:16:05 +0200
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <u88vm5$1apje$1@dont-email.me>
References: <g45lnjxceq.ln2@Telcontar.valinor> <u88rn9$1a8v7$1@dont-email.me>
<jbalnjxvt5.ln2@Telcontar.valinor>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 7 Jul 2023 12:16:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="65cd8ca93d06d6d000b69907b7e00a6a";
logging-data="1402478"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19QJ5vLFXFxpcFQdLHg3/fp"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
Cancel-Lock: sha1:TcKseNushWs2Uu3UUumCC0r+HO4=
Content-Language: pl
In-Reply-To: <jbalnjxvt5.ln2@Telcontar.valinor>
 by: marrgol - Fri, 7 Jul 2023 12:16 UTC

On 07/07/2023 at 13.43, Carlos E.R. wrote:
> On 2023-07-07 13:08, marrgol wrote:
>> On 07/07/2023 at 12.14, Carlos E.R. wrote:
>>> In unison profile, is there a way to say in the profile that a file
>>> should always be copied in a certain direction, always the same
>>> direction?
>>>
>>> https://en.wikipedia.org/wiki/Unison_(software)
>>>
>>>
>>> I had a look at the manual, but did not see it.
>>>
>>> /usr/share/doc/packages/unison/unison-manual.html
>>
>> Unless I misunderstand what you're after, there's:
>>
>> "force xxx
>>   Including the preference -force root causes Unison to resolve
>>   all differences (even non-conflicting changes) in favor of root.
>>   This effectively changes Unison from a synchronizer into
>>   a mirroring utility."
>
> No, that affects all the files. I need this for a single file. All
> others should follow normal rules.

How about 'preferpartial xxx' then?

--
mrg

Re: Unison question

<u8906n$1apje$3@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2027&group=alt.os.linux#2027

  copy link   Newsgroups: alt.os.linux comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: marrgol@address.invalid (marrgol)
Newsgroups: alt.os.linux,comp.os.linux.misc
Subject: Re: Unison question
Date: Fri, 7 Jul 2023 14:24:55 +0200
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <u8906n$1apje$3@dont-email.me>
References: <g45lnjxceq.ln2@Telcontar.valinor> <u88rn9$1a8v7$1@dont-email.me>
<jbalnjxvt5.ln2@Telcontar.valinor>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 7 Jul 2023 12:24:56 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="65cd8ca93d06d6d000b69907b7e00a6a";
logging-data="1402478"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18dscZXnWqWIfhVqG+H2nEu"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
Cancel-Lock: sha1:E8qybgs5Ck/e3wQMhBHL91sarX8=
Content-Language: pl
In-Reply-To: <jbalnjxvt5.ln2@Telcontar.valinor>
 by: marrgol - Fri, 7 Jul 2023 12:24 UTC

On 07/07/2023 at 13.43, Carlos E.R. wrote:
> On 2023-07-07 13:08, marrgol wrote:
>> On 07/07/2023 at 12.14, Carlos E.R. wrote:
>>> In unison profile, is there a way to say in the profile that a file
>>> should always be copied in a certain direction, always the same
>>> direction?
>>>
>>> https://en.wikipedia.org/wiki/Unison_(software)
>>>
>>>
>>> I had a look at the manual, but did not see it.
>>>
>>> /usr/share/doc/packages/unison/unison-manual.html
>>
>> Unless I misunderstand what you're after, there's:
>>
>> "force xxx
>>   Including the preference -force root causes Unison to resolve
>>   all differences (even non-conflicting changes) in favor of root.
>>   This effectively changes Unison from a synchronizer into
>>   a mirroring utility."
>
> No, that affects all the files. I need this for a single file. All
> others should follow normal rules.

How about 'forcepartial xxx' then?

--
mrg

Re: Unison question [solved]

<vphlnjx8b5.ln2@Telcontar.valinor>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2028&group=alt.os.linux#2028

  copy link   Newsgroups: alt.os.linux comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E.R.)
Newsgroups: alt.os.linux,comp.os.linux.misc
Subject: Re: Unison question [solved]
Date: Fri, 7 Jul 2023 15:50:23 +0200
Lines: 186
Message-ID: <vphlnjx8b5.ln2@Telcontar.valinor>
References: <g45lnjxceq.ln2@Telcontar.valinor> <u88rn9$1a8v7$1@dont-email.me>
<jbalnjxvt5.ln2@Telcontar.valinor> <u8906n$1apje$3@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net Jx/3SzHUGCKs/zzZQFO4BwbCIaz4aJKBUChmahniP2SqY/8eqw
X-Orig-Path: Telcontar.valinor!not-for-mail
Cancel-Lock: sha1:fiuJcmAEkCi0sGzRDgoKuPnY3G4= sha256:k2aw8Us8SUFlJTZLKucpNTXJpkjQkfkysJyI+J0fgv8=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.9.1
Content-Language: es-ES, en-CA
In-Reply-To: <u8906n$1apje$3@dont-email.me>
 by: Carlos E.R. - Fri, 7 Jul 2023 13:50 UTC

On 2023-07-07 14:24, marrgol wrote:
> On 07/07/2023 at 13.43, Carlos E.R. wrote:
>> On 2023-07-07 13:08, marrgol wrote:
>>> On 07/07/2023 at 12.14, Carlos E.R. wrote:
>>>> In unison profile, is there a way to say in the profile that a file
>>>> should always be copied in a certain direction, always the same
>>>> direction?
>>>>
>>>> https://en.wikipedia.org/wiki/Unison_(software)
>>>>
>>>>
>>>> I had a look at the manual, but did not see it.
>>>>
>>>> /usr/share/doc/packages/unison/unison-manual.html
>>>
>>> Unless I misunderstand what you're after, there's:
>>>
>>> "force xxx
>>>    Including the preference -force root causes Unison to resolve
>>>    all differences (even non-conflicting changes) in favor of root.
>>>    This effectively changes Unison from a synchronizer into
>>>    a mirroring utility."
>>
>> No, that affects all the files. I need this for a single file. All
>> others should follow normal rules.
>
> How about 'forcepartial xxx' then?

I was going to comment about it just now, I was checking the manual again.

forcepartial xxx
Including the preference forcepartial = PATHSPEC -> root causes
Unison to resolve all differences (even non-conflicting changes) in
favor of root for the files in PATHSPEC (see the Path Specification
section for more information). This effectively changes Unison from a
synchronizer into a mirroring utility.

You can also specify forcepartial PATHSPEC -> newer (or
forcepartial PATHSPEC older) to force Unison to choose the file with the
later (earlier) modtime. In this case, the -times preference must also
be enabled.

This preference should be used only if you are sure you know what
you are doing!

The problem is that it makes it resolve always in favor of "root". And I
need one file in one direction, and another file in reverse direction.

{I misunderstood what "root" means}

There is also this, but same problem:

preferpartial xxx
Including the preference preferpartial = PATHSPEC -> root causes
Unison always to resolve conflicts in favor of root, rather than asking
for guidance from the user, for the files in PATHSPEC (see the Path
Specification section for more information). (The syntax of root is the
same as for the root preference, plus the special values newer and older.)

This preference should be used only if you are sure you know what
you are doing!

I don't understand the syntax.

preferpartial = PATHSPEC -> root

After several tests, I arrived at:

label = ssd250_cripta - (cer is computer)
root = /home/cer/Cripta/
root = /media/ssd250_xfs_c/cer/Cripta/

path = Documentacion
forcepartial = Name keys/flagT.kdbx -> /home/cer/Cripta/
forcepartial = Name keys/flagE.kdbx -> /media/ssd250_xfs_c/cer/Cripta/

Then created the flag files:

cer@Telcontar:~> l /home/cer/Cripta/keys/flag*
/media/ssd250_xfs_c/cer/Cripta/keys/flag*
-rw-r--r-- 1 cer users 0 Jul 7 15:02 /home/cer/Cripta/keys/flagT.kdbx
-rw-r--r-- 1 cer users 0 Jul 7 15:02
/media/ssd250_xfs_c/cer/Cripta/keys/flagE.kdbx
cer@Telcontar:~>

I run unison, they are not copied, nor even listed in the GUI. I
reversed the defs:

forcepartial = Name keys/flagT.kdbx -> /media/ssd250_xfs_c/cer/Cripta/
forcepartial = Name keys/flagE.kdbx -> /home/cer/Cripta/

still nothing happens (it is 15:08):

cer@Telcontar:~> l /home/cer/Cripta/keys/flag*
/media/ssd250_xfs_c/cer/Cripta/keys/flag*
-rw-r--r-- 1 cer users 0 Jul 7 15:02 /home/cer/Cripta/keys/flagT.kdbx
-rw-r--r-- 1 cer users 0 Jul 7 15:02
/media/ssd250_xfs_c/cer/Cripta/keys/flagE.kdbx

Also tried:

preferpartial = Path keys/flagE.kdbx -> /media/ssd250_xfs_c/cer/Cripta/
preferpartial = Path keys/flagT.kdbx -> /home/cer/Cripta/

forcepartial = Path keys/flagE.kdbx -> /media/ssd250_xfs_c/cer/Cripta/
forcepartial = Path keys/flagT.kdbx -> /home/cer/Cripta/

forcepartial = Path keys/flagT.kdbx -> /media/ssd250_xfs_c/cer/Cripta/
forcepartial = Path keys/flagE.kdbx -> /home/cer/Cripta/

I don't understand.

Trying:

path = Documentacion
path = keys/flagT.kdbx
path = keys/flagE.kdbx

forcepartial = Path keys/flagT.kdbx -> /media/ssd250_xfs_c/cer/Cripta/
forcepartial = Path keys/flagE.kdbx -> /home/cer/Cripta/

Now I get:

Fatal error

Filesystem watcher error: file '/data/cripta/cer/keys/flagE.kdbx' does
not exist
The watcher can be disabled by setting preference 'watch' to false

Ok, it is correct, it exists on the other side; so the file has to
exists on both sides initially.

Bingo!

The syntax is:

path = keys/flagT.kdbx
path = keys/flagE.kdbx

preferpartial = Path keys/flagE.kdbx -> /media/ssd250_xfs_c/cer/Cripta/
preferpartial = Path keys/flagT.kdbx -> /home/cer/Cripta/

And the arrow, always to the right, indicates the direction of the copy.

Now I have to change the "wrong" file, and see if it is copied in the
right direction.

I edit flagT.kdbx in "/media..., Bug unison wants it to copy to home.
That is wrong, it doesn't obey the preference.

path = keys/flagT.kdbx
path = keys/flagE.kdbx

forcepartial = Path keys/flagE.kdbx -> /media/ssd250_xfs_c/cer/Cripta/
forcepartial = Path keys/flagT.kdbx -> /home/cer/Cripta/

That does work, it says copy from /home to /media.

Solved!

--
Cheers, Carlos.

Re: Unison question

<u897an$1bn0f$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2029&group=alt.os.linux#2029

  copy link   Newsgroups: alt.os.linux comp.os.linux.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: alt.os.linux,comp.os.linux.misc
Subject: Re: Unison question
Date: Fri, 7 Jul 2023 14:26:31 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <u897an$1bn0f$1@dont-email.me>
References: <g45lnjxceq.ln2@Telcontar.valinor> <2ealnjxvt5.ln2@Telcontar.valinor>
Injection-Date: Fri, 7 Jul 2023 14:26:31 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="cb109d02bab9e0e2a5b017b2bb892f48";
logging-data="1432591"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18PoeOK+r6GrUrvoRPQpoWQ"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.19 (x86_64))
Cancel-Lock: sha1:qH4xwTwtEhfK7H6Yka7YesGDmNE=
 by: Rich - Fri, 7 Jul 2023 14:26 UTC

In comp.os.linux.misc Carlos E.R. <robin_listas@es.invalid> wrote:
> On 2023-07-07 12:14, Carlos E.R. wrote:
>>
>> Hi,
>>
>> In unison profile, is there a way to say in the profile that a file
>> should always be copied in a certain direction, always the same direction?
>>
>> https://en.wikipedia.org/wiki/Unison_(software)
>>
>>
>> I had a look at the manual, but did not see it.
>>
>> /usr/share/doc/packages/unison/unison-manual.html
>>
>
> Alternatively, perhaps run a custom external command each time a sync is
> done.

Another idea, although it does depend upon this assumption (as I do not
use unison):

Assumption: Unison has the ability to specify a list of files to be
excluded from consideration by unison.

Run two unison passes:

pass 1 - unison configured to sync everything, but with this one file
listed as "exclude" so the file is untouched by the first pass

pass 2 - unison configured to only look at the one file, and further
configured with the suggestion up thread to set that file to "one
direction".

Re: Unison question - merging a file [solved]

<hjiqnjx4p5.ln2@Telcontar.valinor>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2039&group=alt.os.linux#2039

  copy link   Newsgroups: alt.os.linux comp.os.linux.misc
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E.R.)
Newsgroups: alt.os.linux,comp.os.linux.misc
Subject: Re: Unison question - merging a file [solved]
Date: Sun, 9 Jul 2023 13:34:41 +0200
Lines: 70
Message-ID: <hjiqnjx4p5.ln2@Telcontar.valinor>
References: <g45lnjxceq.ln2@Telcontar.valinor> <u88rn9$1a8v7$1@dont-email.me>
<jbalnjxvt5.ln2@Telcontar.valinor> <u8906n$1apje$3@dont-email.me>
<vphlnjx8b5.ln2@Telcontar.valinor>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 9U6Il7AZXvuT2ELJy/LawAFxAVERws8NfoppApy26PF3WVYR5U
X-Orig-Path: Telcontar.valinor!not-for-mail
Cancel-Lock: sha1:vdqpo68qKf7uxFq+J6dgGAO+2aI= sha256:vaSHg1SdoDy3CB7b9gQq7Q81An/+SxpDH/iFgm262W4=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.9.1
Content-Language: es-ES, en-CA
In-Reply-To: <vphlnjx8b5.ln2@Telcontar.valinor>
 by: Carlos E.R. - Sun, 9 Jul 2023 11:34 UTC

On 2023-07-07 15:50, Carlos E.R. wrote:
> On 2023-07-07 14:24, marrgol wrote:
>> On 07/07/2023 at 13.43, Carlos E.R. wrote:
>>> On 2023-07-07 13:08, marrgol wrote:

> After several tests, I arrived at:
>
> label = ssd250_cripta - (cer is computer)
> root = /home/cer/Cripta/
> root = /media/ssd250_xfs_c/cer/Cripta/

....

> I edit flagT.kdbx in "/media..., Bug unison wants it to copy to home.
> That is wrong, it doesn't obey the preference.
>
> path = keys/flagT.kdbx
> path = keys/flagE.kdbx
>
> forcepartial = Path keys/flagE.kdbx -> /media/ssd250_xfs_c/cer/Cripta/
> forcepartial = Path keys/flagT.kdbx -> /home/cer/Cripta/
>
> That does work, it says copy from /home to /media.
>
>
> Solved!

After this success, I had success at another thing nagging me for years.

I keep a file named "howto" where I keep, well, how to do things in the
computer. I tend to edit it on desktop and laptop, but I wanted to keep
the files in sync. Difficult when I have changes on both sides. Solution:

label = ssd250_Documents - (ssd is computer)
root = /home/cer/Documents/
root = /media/ssd250_xfs_c/cer/Documents/

path = ssd

path = Howtos/howto
merge = Path Howtos/howto -> meld CURRENT1 CURRENT2

The initial idea I got from this wiki:

https://wiki.archlinux.org/title/unison#Merging_in_Emacs

The unison manual talks about it, in the "Changes since 2.6.38" section:

merge2 = emacs -q --eval '(ediff-merge-files "CURRENT1" "CURRENT2"
nil "NEW")'
merge = emacs -q --eval '(ediff-merge-files-with-ancestor
"CURRENT1" "CURRENT2" "OLD" nil "NEW")'

Not being an emacs fan, I thought about "meld", which I like and use. I
was not the first one to ask:

https://serverfault.com/questions/1046632/how-do-i-set-up-unison-to-open-the-meld-gui-when-i-choose-to-merge-in-the-unison

--
Cheers, Carlos.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor