[oS-en] Unison question
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, In unison profile, is there a way to say that a file should always be copied in a certain direction, always the same? - -- Cheers Carlos E. R. (from 15.4 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCZKajMRwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVA6sAnRzkv8TsqqK4LHzy9s8m xEUUNVsVAJ9VdJD9FtEJK0Ya1J1DM0S1xJBy/Q== =iuHa -----END PGP SIGNATURE-----
On 2023-07-06 13:19, Carlos E. R. wrote:
Hi,
In unison profile, is there a way to say that a file should always be copied in a certain direction, always the same?
Forgot to say: I can't find the manual. It was here: <https://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html> It is supposedly moved to <https://github.com/bcpierce00/unison>, but I don't see the manual there. -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)
On Thu, 6 Jul 2023 13:23:20 +0200 "Carlos E. R." <robin.listas@telefonica.net> wrote:
On 2023-07-06 13:19, Carlos E. R. wrote:
Hi,
In unison profile, is there a way to say that a file should always be copied in a certain direction, always the same?
Forgot to say: I can't find the manual. It was here:
<https://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html>
It is supposedly moved to <https://github.com/bcpierce00/unison>, but I don't see the manual there.
I don't use unison, so I typed unison file manual into google and found: https://unison-code.github.io/doc/manual.pdf https://github.com/bcpierce00/unison/blob/master/doc/unison-manual.tex Hopefully one of those is what you want.
On 2023-07-06 18:50, Dave Howorth wrote:
On Thu, 6 Jul 2023 13:23:20 +0200 "Carlos E. R." <> wrote:
On 2023-07-06 13:19, Carlos E. R. wrote:
Hi,
In unison profile, is there a way to say that a file should always be copied in a certain direction, always the same?
Forgot to say: I can't find the manual. It was here:
<https://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html>
It is supposedly moved to <https://github.com/bcpierce00/unison>, but I don't see the manual there.
I don't use unison, so I typed unison file manual into google and found:
https://unison-code.github.io/doc/manual.pdf https://github.com/bcpierce00/unison/blob/master/doc/unison-manual.tex
Hopefully one of those is what you want.
Thanks. Unfortunately, the first one is not it, it is some other thing by the same name. And the second, well, has to be compiled or something to read it. -- Cheers / Saludos, Carlos E. R. (from Elesar, using openSUSE Leap 15.5)
Carlos, et al -- ...and then Carlos E. R. said... % On 2023-07-06 18:50, Dave Howorth wrote: % > On Thu, 6 Jul 2023 13:23:20 +0200 "Carlos E. R." <> wrote: % > ... % > https://github.com/bcpierce00/unison/blob/master/doc/unison-manual.tex % > % > Hopefully one of those is what you want. % % Unfortunately, the first one is not it, it is some other thing by the same % name. And the second, well, has to be compiled or something to read it. Use the source, Carlos! ;-) It's actually pretty easy to read. But there are also lots of online viewers that will parse it for you. % % % -- % Cheers / Saludos, % % Carlos E. R. HAND :-D -- David T-G See http://justpickone.org/davidtg/email/ See http://justpickone.org/davidtg/tofu.txt
On 06/07/2023 19.14, David T-G wrote:
Carlos, et al --
...and then Carlos E. R. said... % On 2023-07-06 18:50, Dave Howorth wrote: % > On Thu, 6 Jul 2023 13:23:20 +0200 "Carlos E. R." <> wrote: % > ... % > https://github.com/bcpierce00/unison/blob/master/doc/unison-manual.tex % > % > Hopefully one of those is what you want. % % Unfortunately, the first one is not it, it is some other thing by the same % name. And the second, well, has to be compiled or something to read it.
Use the source, Carlos! ;-) It's actually pretty easy to read.
I find it impossible to read.
But there are also lots of online viewers that will parse it for you.
Sorry, I don't know any. Anyway, I found it here: /usr/share/doc/packages/unison/unison-manual.html although dated on 2012. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.4 (Legolas))
On Thu, 6 Jul 2023 19:57:30 +0200 "Carlos E. R." <robin.listas@telefonica.net> wrote:
On 06/07/2023 19.14, David T-G wrote:
Carlos, et al --
...and then Carlos E. R. said... % On 2023-07-06 18:50, Dave Howorth wrote: % > On Thu, 6 Jul 2023 13:23:20 +0200 "Carlos E. R." <> wrote: % > ... % > https://github.com/bcpierce00/unison/blob/master/doc/unison-manual.tex % > % > Hopefully one of those is what you want. % % Unfortunately, the first one is not it, it is some other thing by the same % name. And the second, well, has to be compiled or something to read it.
Use the source, Carlos! ;-) It's actually pretty easy to read.
I find it impossible to read.
But there are also lots of online viewers that will parse it for you.
Sorry, I don't know any.
Google shows several and a search for text viewer opensuse shows quite a few opensuse packages.
On 2023-07-06 13:19, Carlos E. R. wrote:
Hi,
In unison profile, is there a way to say that a file should always be copied in a certain direction, always the same?
Got it from an answer in Usenet, suggesting at "force xxx". The syntax is not obvious from the manual, and I found no examples anywhere. The profile that works is: label = ssd250_cripta - (cer is computer) root = /home/cer/Cripta/ root = /media/ssd250_xfs_c/cer/Cripta/ 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/ I edit flagT.kdbx in "/media, GUI says will copy the file from computer to /media, undoing the edit, which is what Ii need. The manual doesn't say that forcepartial and preferpartial needs that the files also appear in "path" earlier, took me many tries to find that out. 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! 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! -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)
participants (3)
-
Carlos E. R.
-
Dave Howorth
-
David T-G