rbem1984 | 18 Jun 2013 00:11
Picon

fsmonitor.py with Samba share

Hello,

I have a mounted Samba share (permissions are set to 775) that I would like to sync with a local directory on an
Apple server running OS X 10.8.4. I have Unison 2.46.18 and fsmonitor.py, obtained from SVN this morning.

Syncing manually or with a cron job is working as intended but I would like to use the directory watching
functionality through fsmonitor.py. When I run with "-repeat watch", fsmonitor.py catches changes to
the local directory and Unison syncs correctly. Additionally, if I create/modify/delete a file on the
Samba share through Terminal, the change is caught and Unison syncs correctly. However, if I
create/modify/delete a file on the Samba share from OS X Finder/Windows Explorer/any other program (for
instance, Microsoft Word, Notepad, TextEdit) fsmonitor.py does not seem to see the change. So, for
instance, if I save a file to the Samba share from Windows Notepad or OSX TextEdit, fsmonitor.py does not
catch the change and a Unison sync is not initiated. However, if I then touch the file th
 rough Terminal, all of a sudden fsmonitor.py sees it and a sync is initiated.

I have little experience with Unison, or with Samba for that matter, so perhaps there is some obvious reason
why this doesn't work that I'm missing. Anyone have any ideas?

Thanks.

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

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

(Continue reading)

jimi.hullegard | 13 Jun 2013 18:53
Picon
Favicon

Best way to set up a one way sync/copy? Sync deletes source->target, but don't delete files unique to target?

xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

Hi,

 

I have been looking for a simple utility to do a one way sync/copy of a folder structure from one part of my local windows harddrive, to another, and I stumbled upon the Unison utility.

 

I need this because I have a folder, lets call it “source”, that is the base structure of a java servlet webapp, that contains some but not all files that are needed for that webapp. Using some build scripts, with both maven and ant, these files are combined with some other files to get a complete webapp in the form of a war file. That war file is then deployed to Tomcat in an exploded format, ie an unpacked folder structure, lets call that folder the “target”. Now, in order for me to quickly modify jsp-files etc in the web application I need to modify these files in the target folder. So what I want is to sync/copy all modified files from the source folder (checked in to a version control system) to this target folder in tomcat.

 

So, what I need is a one way sync/copy. After reading the manual, and doing some tests, I have come up with this syntax so far:

 

unison source target -batch -nocreation source -nodeletion source -noupdate source -nodeletion target -force source

 

This works good most of the time. But I’m struggeling with the “-nodeletion target” part. Without it, files that only exists in the target folder gets deleted. But with the parameter set, files deleted in the source folder is not deleted in the target folder. Is there a way to get “both” functions? Ie if a file/folder existed in source during the previous sync, but has since been deleted, then it should be deleted in the target folder, but files in the target folder that never existed in the source folder should remain untouched in the target folder.

 

Regards

/Jimi



__._,_.___

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

__,_._,___
Michele Catalano | 12 Jun 2013 14:45
Picon
Favicon

syncing ownership

Dears
I'm setting a client/server syncronization process between 2 clients and a
server.
On the above machines is running unison version 2.32.52. On the two client I use two different users 'A' and
'B'. When A syncronizes, the target folder user (and group) owner on the server machine change importing
client's A ownership. The same when B try. I use perms=0 and owner=false and group=flase preferences in
order to prevent it, without luck.

Bests

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

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/

Alan Schmitt | 10 Jun 2013 19:06

Re: One way sync without delete

emagsamurai writes:

> I'm finally getting back to this. I've tried adding the following line to my preferences
>
> nodeletion = /Users/MyName/Documents/Temp2/

OK.

> where the path is copied directly from my root declaration at the
> beginning of my preferences file (no typos). The syncronization works
> when I comment out the nodeletion line, so it must be something with
> that line. I've tried it both with and without the trailing slash, but
> no luck.

What does not work? There is an error, or deletions are propagated?

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:
    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 | 10 Jun 2013 01:04
Picon

NTFS ADS not being preserved

Hello,

I sync files between my mac and pc using Unison. (cygwin ver. on the pc)

Some files on my mac have xattrs associated with them while some files on my pc have NTFS ADS associated with them. While I don't care about propagating this meta data across machines, I care about preserving them while updating the files. 

The behavior is as desired on that mac -- if a file M on it is updated during a Unison sync, any xattrs associated with M still remain. 
However if a file P on the PC is updated during a unison sync, any ADS associated with it are lost. 

How can I avoid this behavior? I'd imagine if files are update in-place this shouldn't happen.

On a related note how do I know if Unison is using the copyprog I specified.
I set copyprog = foobar -blah and copythreshold=0, where foobar is non-existant, but Unison didn't report any failures. Did it even try to use it?

thanks,
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

__,_._,___
Danny L. | 23 May 2013 11:55
Picon

Proceed with propagating updates?

I hope this is the right forum for a feature request. If not, please advise.

When synchronizing, unison let's me decide on what to do with files which need updating.

When finished with that task, unison asks:

 Proceed with propagating updates?

At this point I'd like to have the option to list the changes which unison is about to propagate in a short form so that I can review them and decide whether I'd really propagate the changes or not.

Thanks.
Daniel

--
Running unison version 2.40.102 on a MacBook Pro. I'm synchronizing a
local folder with a remote folder (shared through CIFS and mounted
locally).

__._,_.___

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

__,_._,___
Puneet Arora | 30 May 2013 23:40
Picon

Can unison preserve (if not sync) extended attributed?

Hello,

I use Unison to sync files between my pc (cygwin) and mac (osx mountain lion). I understand unison doesn't support syncing extended attributes. However can it preserve them on a file? For example if file foo is being updated on the mac and the copy on the mac has some extended attributes, would they be preserved if it is updated due to a Unison sync?

thanks,
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

__,_._,___
Picon
Favicon

unison 2.40.102 can't load on windows

Hi to all!
I tried to install unison 2.40.102 (on top of gtk2-2.24.10), but after the installation the program just did not load!!
I have to mention that there was no error for a dll file and the windows environment path was set correctly.
The same think happened when I tried unison 2.32.52 and 2.27.157 (according to http://alan.petitepomme.net/unison/index.html instructions).
Am I doing something wrong?

thank you,
alex


__._,_.___

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

__,_._,___
emagsamurai | 24 May 2013 18:11
Picon
Favicon

One way sync without delete

I am new to Unison, and I am trying to setup a synchronization between my laptop and my home server for a
"photos" folder. However, I would like to only keep the files on my laptop that I am currently working with
and use my server to store all of my photos. I would like the revised files to be copied to my server as I modify
them, but not delete files from my server if I decide to delete the local copy from my laptop.

Is there a way to do this that I'm overlooking?

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

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/

Stan Reeves | 24 May 2013 16:17
Picon
Favicon

syncing folder modtimes

Windows has the annoying behavior that it modifies folder times during a copy or a transfer with Easy Transfer.  I'd like the folder modtimes to match the original.

According to the manual:
times When this flag is set to true, file modification times (but not directory modtimes) are propagated.

Is there a way to sync folder modtimes?


Stan




__._,_.___

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

__,_._,___
kabsi2001 | 23 May 2013 14:49
Picon
Favicon

unison list unchanged file as changed and with wrong file size

I am running unison version 2.40.102 on a MacBook Pro. I'm synchronizing a
local folder with a remote folder (shared through CIFS and mounted
locally).

I am confused by what happend recently:


I propagated a new file from the local folder to the remote folder.

On a second unison run, unison identified this file as "changed" on the remote folder and recommended to propagate it to the local folder.

Please see the output below (in
all unison outputs I've converted the real file names to shorter ones):


         <---- changed    N/PAS/F2013-05-22.doc  [f] x
LXXXXXX/M... : unchanged file     modified on 201 3-05-22 at 15:21:50  size 42270     rw??????? W8BN MSWD
RXXXX/MxA... : changed file       modified on 2013-05-22 at 15:21:50  size 41984     rw???????

Unison also lists a wrong file size (42270 bytes) for the local file althouth "ls" reveals, that both files have the same real size of 41984 bytes.


Why is this? And what does "W8BN MSWD" mean?

Maybe the error log helps in assessing this issue:

[update] buildUpdate: /Users/bla/LXXXXXX/MxA/N/PAS/F2013-05-22.doc
[update] checkContentsChange: archStamp is inode (12015437) / info.inode (12015437) / times: 1369228910.000000 = 1369228910.000000... true / lengths: 41984 - 41984


[pred] ignore 'N/PAS/F2013- 05-22.doc' = false
[update] buildUpdate: /Volumes/m-share/Pro/P/
RXXXX/MxA/N/PAS/F2013-05-22.doc
[update] checkContentsChange: archStamp is inode (126943692) / info.inode (832428287) / times: 1369228910.000000 = 1369228910.000000... true / lengths: 41984 - 41984
[fpcache] cache hit for path N / PAS / F 2013-05-22.doc
[update]   archive digest = (c6659289c1bfa26ae1637a891be19c4e,c689c58945169065483d94e39583d416)   current digest = (c6659289c1bfa26ae1637a891be19c4e,)
[update]   Updated file


For now, I ignore this "change request" but if those "misinterpretations" increase, I will not be able to use unison any more. 

Thanks for any help!
Daniel


__._,_.___

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