Huw G | 3 Oct 2011 14:46
Picon

Sart with "Detect Updates and Proceed (Without Waiting)"

Hello

Can I start Unison & select a profile without it automatically scanning for changes? I want to be able to
immediately use the Detect Updates and Proceed (Without Waiting) menu option.

I use Unison GTK 2.40.63-0ubuntu1~ppa0, currently on Linux Mint 10.

The main thing I use it for is to synchronise a ~425GB directory, from one external USB 2TB NTFS drive, to
another identical one, as a backup.

When I start Unison it asks me to choose a profile. When I do that it immediately scans for differences. This
takes quite a while - there are lots of sub-directories & lots of individual files. Actual
synchronisation doesn't take long, I don't add much new content often, it's just documents, scans,
photos, music, & videos, that have built up over many years.

I realise that using NTFS may be slowing things down, but I still occasionally use Windows & am not yet ready
to move the shared storage to EXT4.

At the end of a day I often find I do not have Unison already running (or it's in the wrong profile), & the last
thing I want to do is wait while it scans for changes & then press Go - I just want to start it & choose Detect
Updates and Proceed (Without Waiting).

I have just applied to join this group & don't know how long it will take for my request to be approved, so
apologiesif I don't respond to any follow-ups quickly - I may not get them for a while.

Many thanks for any help or suggestions,
Huw

------------------------------------

(Continue reading)

Alan Schmitt | 3 Oct 2011 15:31

Re: Sart with "Detect Updates and Proceed (Without Waiting)"

On 3 oct. 2011, at 14:46, Huw G wrote:

> Hello
> 
> Can I start Unison & select a profile without it automatically scanning for changes? I want to be able to
immediately use the Detect Updates and Proceed (Without Waiting) menu option.

You can tell unison to proceed without asking you first using the
batch = true
option in your profile.

Would this work in your case?

Alan

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/unison-users/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/unison-users/join
    (Yahoo! ID required)

<*> To change settings via email:
(Continue reading)

Huw G | 4 Oct 2011 03:23
Picon

Re: Sart with "Detect Updates and Proceed (Without Waiting)"


Thanks Alan

In short, yes. Thank you!

I had seen the command line switch -batch in the man pages, but didn't know how to use it from the GUI. I've now
figured it out: from the Profile Selection panel, choose Edit. In the Profile Editor panel, choose Add. I
hadn't pressed that button before, & had no idea it led to a comprehensive list of preferences, including batch.

Before I found that, I came across:
http://www.stanford.edu/~pgbovine/unison-for-your-mom.htm
which gave me enough information to do it by hand, if I hadn't found the above method.

Thanks again for setting me in the right direction,
Cheers,
Huw

________________________________
From: Alan Schmitt 

Sent: Tuesday, 4 October 2011, 0:31
Subject: Re: [unison-users] Sart with "Detect Updates and Proceed (Without Waiting)"

On 3 oct. 2011, at 14:46, Huw G wrote:

> Can I start Unison & select a profile without it automatically scanning for changes? I want to be able to
immediately use the Detect Updates and Proceed (Without Waiting) menu option.

You can tell unison to proceed without asking you first using the
batch = true
(Continue reading)

Puneet Arora | 5 Oct 2011 11:03
Picon

syncing file timestamps

Hello,

I started using Unison recently and I'm very impressed by it. I've finally achieved file sync between my mac and my PC and it's a great convinience. 

One thing I noticed is that it doesn't synchronize file create times. I guess it's fair as unix has no concept of create times. However both HFS+ and NTFS have the ability to store the file create times. It's a piece of information I refer to often. In my sync scenario I've a mac and a PC and not being able to retain create times hurts the utility. I'm also not sure why -times would not sync modification times for folders. At some point I will probably (thanks to the greatness of foss) contribute to unison to add these features. For now however I plan to write a quick script to sync create times for files and mod. times for files and folders. The script will assume that unison has just been run and the data is in sync. I've thought through how the script would work and it seems fairly easy to implement. 

One feature I want my script to have is the ability to ignore syncing datetime info of certain files that unison skipped (either becaase it was modified in both roots or becauce one of its copies was locked). I plan to parse this information out of unison logs and pass it to my script. However in a case where one file has been modified seperately in both roots and there are no other changes, unison skips it and produces no logs. Only when some data is transfered is a log generated containing lines like "Skipped path/to/file". When there's no transfer operation and only skip operation(s) unison doesn't explicitly say something was skipped making the whole parsing idea non-uniform. Is there any fool proof way around this? Could this be called a bug (no log generated when there was nothing to transfer but only some files to skip) ?

please feel free to share more suggestions/ideas.

thank you,

regards,
Puneet


__._,_.___

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
Alan Schmitt | 5 Oct 2011 11:16

Re: syncing file timestamps

On 5 oct. 2011, at 11:03, Puneet Arora wrote:

Hello,

I started using Unison recently and I'm very impressed by it. I've finally achieved file sync between my mac and my PC and it's a great convinience. 

One thing I noticed is that it doesn't synchronize file create times. I guess it's fair as unix has no concept of create times. However both HFS+ and NTFS have the ability to store the file create times. It's a piece of information I refer to often. In my sync scenario I've a mac and a PC and not being able to retain create times hurts the utility. I'm also not sure why -times would not sync modification times for folders. At some point I will probably (thanks to the greatness of foss) contribute to unison to add these features. For now however I plan to write a quick script to sync create times for files and mod. times for files and folders. The script will assume that unison has just been run and the data is in sync. I've thought through how the script would work and it seems fairly easy to implement. 

Have you tried the "-times" option? I'm not sure it propagates creation time but it does propagate modification time for files.

Alan



__._,_.___

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
Benjamin C. Pierce | 5 Oct 2011 14:49
Favicon

Re: syncing file timestamps

> One feature I want my script to have is the ability to ignore syncing datetime info of certain files that
unison skipped (either becaase it was modified in both roots or becauce one of its copies was locked). I
plan to parse this information out of unison logs and pass it to my script. However in a case where one file
has been modified seperately in both roots and there are no other changes, unison skips it and produces no
logs. Only when some data is transfered is a log generated containing lines like "Skipped path/to/file".
When there's no transfer operation and only skip operation(s) unison doesn't explicitly say something
was skipped making the whole parsing idea non-uniform.

Strictly speaking, files that have been changed in identical ways on both sides are not listed in the log
even when there are other things to report -- they are always silently skipped.

> Is there any fool proof way around this? Could this be called a bug (no log generated when there was nothing
to transfer but only some files to skip) ?

I don't see any way around this without changing Unison itself.  If you need reliable propagation of create
times, I'm afraid adding it to Unison may be your easiest option.

Best,

    - Benjamin

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/unison-users/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/unison-users/join
    (Yahoo! ID required)

<*> To change settings via email:
    unison-users-digest <at> yahoogroups.com 
    unison-users-fullfeatured <at> yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    unison-users-unsubscribe <at> yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Puneet Arora | 6 Oct 2011 10:48
Picon

Re: syncing file timestamps

Thanks for your replies.

I spent some time checking out unison code today and skimming through it. I've no experience contributing to open source what so ever, but I guess there's always a first time. Until now I also didn't know unison was written in ocaml .. so I do not understand the head or tail of the files I checked out :) .. hopefully I'll fig it out soon. Do you guys have a favourite IDE you use to work on unison? Is there any text available on the structure of the code? or could someone tell me the first file I should look at which can enlighten me further.

thanks!
Puneet


On Wed, Oct 5, 2011 at 5:49 AM, Benjamin C. Pierce <bcpierce <at> cis.upenn.edu> wrote:
> One feature I want my script to have is the ability to ignore syncing datetime info of certain files that unison skipped (either becaase it was modified in both roots or becauce one of its copies was locked). I plan to parse this information out of unison logs and pass it to my script. However in a case where one file has been modified seperately in both roots and there are no other changes, unison skips it and produces no logs. Only when some data is transfered is a log generated containing lines like "Skipped path/to/file". When there's no transfer operation and only skip operation(s) unison doesn't explicitly say something was skipped making the whole parsing idea non-uniform.

Strictly speaking, files that have been changed in identical ways on both sides are not listed in the log even when there are other things to report -- they are always silently skipped.

> Is there any fool proof way around this? Could this be called a bug (no log generated when there was nothing to transfer but only some files to skip) ?

I don't see any way around this without changing Unison itself.  If you need reliable propagation of create times, I'm afraid adding it to Unison may be your easiest option.

Best,

   - Benjamin





__._,_.___

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
Petr Hanousek | 6 Oct 2011 22:33
Picon

Re: file keeps on changing

Hello,
sometimes is better to wait if problem can decay OpenAFS recently 
released a new version (1.7.1) of Windows AFS client. It is running 
without a need of Windows loopback network adapter and this simplified a 
lot of things. Among others the reported problem disappeared. So this 
track can be closed. Thank you for patience and debugging help.
Sincerely Petr Hanousek

Dne 2.5.2011 15:55, Benjamin C. Pierce napsal(a):
> If you mean "should it matter whether the two hosts are using different filesystem encodings" I believe
the answer is no, for present purposes.  The fingerprinting operation is happening on just one host at a
time (and then later they get compared).
>
>     - B
>
> On Apr 30, 2011, at 3:25 PM, Petr Hanousek wrote:
>
>> Hello Benjamin,
>> sorry for late answer and thank you for reply. I will try to simulate
>> the behavior of touching file on AFS and let you know. In the meantime
>> one question: is it OK that the filesystem encoding of NTFS is different
>> from AFS (internally utf8)?
>> Petr
>>
>> Dne 28.4.2011 18:08, Pierce Benjamin C. napsal(a):
>>> The relevant bit of code from os.ml is below.  When Unison needs to fingerprint a file, it does the
fingerprint, then checks whether the file's modtime (or resource fork) has changed, and if so tries
again. So one possibility that comes to mind is that somehow the act of reading the file to fingerprint it is
changing its modtime.
>>>
>>>     - B
>>>
>>>
>>> let safeFingerprint fspath path info optFp =
>>>      let rec retryLoop count info optFp optRessFp =
>>>        if count = 0 then
>>>          raise (Util.Transient
>>>                   (Printf.sprintf
>>>                      "Failed to fingerprint file \"%s\": \
>>>                       the file keeps on changing"
>>>                      (Fspath.toPrintString (Fspath.concat fspath path))))
>>>        else
>>>          let fp =
>>>            match optFp with
>>>              None     ->   Fingerprint.file fspath path
>>>            | Some fp ->   fp
>>>          in
>>>          let ressFp =
>>>            match optRessFp with
>>>              None      ->   Osx.ressFingerprint fspath path info.Fileinfo.osX
>>>            | Some ress ->   ress
>>>          in
>>>          let (info', dataUnchanged, ressUnchanged) =
>>>            Fileinfo.unchanged fspath path info in
>>>          if dataUnchanged&&   ressUnchanged then
>>>            (info', (fp, ressFp))
>>>          else
>>>            retryLoop (count - 1) info'
>>>              (if dataUnchanged then Some fp else None)
>>>              (if ressUnchanged then Some ressFp else None)
>>>      in
>>>      retryLoop 10 info (* Maximum retries: 10 times *)
>>>        (match optFp with None ->   None | Some (d, _) ->   Some d)
>>>        None
>>>
>>>
>>>
>>> On Apr 28, 2011, at 10:57 AM, Petr Hanousek wrote:
>>>
>>>> Hello group,
>>>> I am using unison for syncing files through multiple systems. The schema
>>>> is Win7 x64 - AFS - Debian testing x64. Both systems are syncing the
>>>> required files with the network disc which is running the AFS
>>>> technology. So on both systems are AFS clients available to read and
>>>> write information on AFS.
>>>>
>>>> At first this worked OK but about half year back we moved to newer AFS
>>>> servers and after some time it is impossible to synchronise files from
>>>> Win7 to AFS. Initial sync and syncing of new files are OK but if I try
>>>> to resync, every older file generates this error:
>>>>
>>>> Error: Failed to fingerprint file "H:/doc/2007/2007.09.18.txt": the file
>>>> keeps on changing
>>>>
>>>> Syncing from Linux is OK.
>>>>
>>>> No newer version of openafs client or unison solved the problem. The
>>>> files are not opened by any application, only touched by openafs client
>>>> when syncing. Maybe it's a problem of windows AFS client but I don't
>>>> even know what to possibly ask at openafs conference. Currently running
>>>> unison 2.40.61, latest openafs client ver 1.5.99.3 and McAfee HIPS 7.0.0
>>>> and antivirus 8.7.0.570 (switching this off caused no improvement). Any
>>>> hints for searching or for asking elsewhere?
>>>>
>>>> Thanks in advance, Petr
>>>>
>>>>
>>>> --
>>>> +---------------------------------------------------------------------+
>>>> | Petr Hanousek                           e-mail: phanousk <at> civ.zcu.cz |
>>>> | Centre of user support                     tel: +420 37 763 2836    |
>>>> | University of West Bohemia              mobile: +420 606 665 139    |
>>>> |           Univerzitni 20, 306 14 Pilsen, Czech Republic             |
>>>> +---------------------------------------------------------------------+
>>>>
>>>>
>>>> ------------------------------------
>>>>
>>>> Yahoo! Groups Links
>>>>
>>>>
>>>>
>>>
>>
>> --
>> +---------------------------------------------------------------------+
>> | Petr Hanousek                           e-mail: phanousk <at> civ.zcu.cz |
>> | Centre of user support                     tel: +420 37 763 2836    |
>> | University of West Bohemia              mobile: +420 606 665 139    |
>> |           Univerzitni 20, 306 14 Pilsen, Czech Republic             |
>> +---------------------------------------------------------------------+
>>
>>
>> ------------------------------------
>>
>> Yahoo! Groups Links
>>
>>
>>
>

-- 
+-------------------------------------------------------------------+
   Petr Hanousek                        e-mail: phanousk <at> civ.zcu.cz
   Centre of user support                  tel: +420 37 763 2836
   University of West Bohemia           mobile: +420 606 665 139
           Univerzitni 20, 306 14 Pilsen, Czech Republic
+-------------------------------------------------------------------+

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/unison-users/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/unison-users/join
    (Yahoo! ID required)

<*> To change settings via email:
    unison-users-digest <at> yahoogroups.com 
    unison-users-fullfeatured <at> yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    unison-users-unsubscribe <at> yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Benjamin C. Pierce | 6 Oct 2011 22:58
Favicon

Re: syncing file timestamps

> I spent some time checking out unison code today and skimming through it. I've no experience contributing
to open source what so ever, but I guess there's always a first time. Until now I also didn't know unison was
written in ocaml .. so I do not understand the head or tail of the files I checked out :) .. hopefully I'll fig
it out soon. Do you guys have a favourite IDE you use to work on unison? Is there any text available on the
structure of the code? or could someone tell me the first file I should look at which can enlighten me further.

There's a README file that gives some guidance on a good order to look at the files.  

Most OCaml programmers seem to just use a text editor (emacs or whatever) as their IDE.

Best,

    - Benjamin

> 
> thanks!
> Puneet
> 
> 
> On Wed, Oct 5, 2011 at 5:49 AM, Benjamin C. Pierce <bcpierce <at> cis.upenn.edu> wrote:
> > One feature I want my script to have is the ability to ignore syncing datetime info of certain files that
unison skipped (either becaase it was modified in both roots or becauce one of its copies was locked). I
plan to parse this information out of unison logs and pass it to my script. However in a case where one file
has been modified seperately in both roots and there are no other changes, unison skips it and produces no
logs. Only when some data is transfered is a log generated containing lines like "Skipped path/to/file".
When there's no transfer operation and only skip operation(s) unison doesn't explicitly say something
was skipped making the whole parsing idea non-uniform.
> 
> Strictly speaking, files that have been changed in identical ways on both sides are not listed in the log
even when there are other things to report -- they are always silently skipped.
> 
> > Is there any fool proof way around this? Could this be called a bug (no log generated when there was nothing
to transfer but only some files to skip) ?
> 
> I don't see any way around this without changing Unison itself.  If you need reliable propagation of create
times, I'm afraid adding it to Unison may be your easiest option.
> 
> Best,
> 
>    - Benjamin
> 
> 
> 
> 
> 
> 

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/unison-users/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/unison-users/join
    (Yahoo! ID required)

<*> To change settings via email:
    unison-users-digest <at> yahoogroups.com 
    unison-users-fullfeatured <at> yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    unison-users-unsubscribe <at> yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Daniel Arantes | 7 Oct 2011 17:42
Picon
Favicon

AIX 6.1 unison installation

Hi,
    has anyone in here done a unison installation on AIX 6.1?
   
    Did you have any issues with libraries or the compilation process?

Regards
Daniel
=========================================
Daniel de O. Arantes
skype: daniel.arantes
msn: danieloarantes <at> hotmail.com
cel (vivo): 21-7183-1683
=========================================


__._,_.___

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Gmane