evencoil evencoil | 1 Apr 2012 16:19
Picon

Large replicas

I am trying to sync a directory and its subdirectories that is both large in file size and has many files.

There is already a copy of this directory on both machines. I want to use Unison to sync future changes, which will be small in both file size and number of files.

My problem is that when I try to do the initial scan in Unison (2.27.57) I invariably get

"Write failed: Broken pipe
Fatal error: Lost connection with the server"

after a couple of hours. Is this an rsync problem? If so, could someone recommend additional commands that would keep the rsync connection alive? I have no issues with this procedure taking a long time, I just want it to actually finish.

Thanks!



__._,_.___

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

__,_._,___
Denis Howe | 1 Apr 2012 20:25
Picon
Gravatar

Re: Large replicas

On 2012-04-01 15:19, Even Coil <evencoil <at> gmail.com> wrote:

when I try to do the initial scan in Unison (2.27.57) I invariably get "Write failed: Broken pipe  Fatal error: Lost connection with the server" 

We had a similar problem with VPN that would time out and drop the connection.  If you just leave a remote shell (e.g. ssh or PuTTY) open, does the connection drop?

Googling the error suggests it's an ssh thing.   http://ocaoimh.ie/2008/12/10/how-to-fix-ssh-timeout-problems/  describes the server and client config changes for ssh time-outs.


__._,_.___

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

__,_._,___
lukshuntim | 3 Apr 2012 15:40
Picon

Re: Large replicas

On 04/02/2012 02:25 AM, Denis Howe wrote:
>  
> 
> On 2012-04-01 15:19, Even Coil <evencoil <at> gmail.com
> <mailto:evencoil <at> gmail.com>> wrote:
> 
>     when I try to do the initial scan in Unison (2.27.57) I invariably
>     get "Write failed: Broken pipe  Fatal error: Lost connection with
>     the server" 

The current version is 2.40. Is there any special reason why you need
version 2.27? It was already a few years old. The newer versions are in
general faster and more robust.

Regards,
ST
-- 

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

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/

Luca Borrione | 3 Apr 2012 18:28
Picon
Favicon

How to tell unison to first delete?


Hello,

I use unison to synchronize 2 usb drives.
As unison first adds new files and then performs deletion of removed files,
this can cause me some trouble if I don't have enough room to accept new files
without removing some first.
So is there a way to tell unison to first delete removed files and only after that
go on with adding new files or copying changed ones?

Thank you in advance
-- 
Luca Borrione <write <at> tiscali.it>

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

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/

Eduard Braun | 9 Apr 2012 14:05
Picon
Picon

"Change Profile..." doesn't work

Hi all,

I've got a problem when changing profiles with "Change Profile..." 
button in Unison 2.40.63 GTK+ version for Windows.

I have two profiles using a socket connection to the same server 
(running Windows, too). When changing between these two profiles unison 
hangs (status shows "Contacting server...").
Changing from or to a local profile works without a problem as well as 
changing between local profiles works. Also choosing the same server 
profile again works without a problem.
Choosing one of the server profiles, switching to a local profile and 
then choosing the other server profile results in a hang, too.

So it seems as soon as two different server profiles are involved unison 
hangs. I assume it's a server bug then? Is the problem known? Are there 
any steps I can follow to debug the problem?

In the meantime I'm closing the Unison client (not the server!) and 
restart it as a workaround. I can then choose the other profile without 
problems. But that's probably not "as designed". ;-)

Hope you can help me solve my problem!

Regards
Eduard

P.S. my profiles lock like this:

     root = C:\folder1
     root = socket://192.168.178.20:123123/folder1

     times = true
     fastcheck = true
     rsync = true

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

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/

jorduna | 12 Apr 2012 14:51
Picon
Favicon

Windows environment variables in Profiles / Unison


This might well be a very basic question.. or even one that has already been responded several times...

I am using an external hard drive to synchronize several folders in two Windows XP machines.

I am using the cl unison, not the gui one

Ideally I woudl want to use a bat file that calls unison with a profile. This profile includes the roots,
paths etc.

My problem is that I would nee to use the %USERPROFILE% when stteing the roots, as users in both machines are different.

Can I use environment variables in PROFILES? I haven't succeded so far... Is there any other way of doing this?

Thx in advance for your help!

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

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/

Dave Warren | 14 Apr 2012 00:08
Favicon
Gravatar

Re: Windows environment variables in Profiles / Unison

On 4/12/2012 5:51 AM, jorduna wrote:
 


This might well be a very basic question.. or even one that has already been responded several times...

I am using an external hard drive to synchronize several folders in two Windows XP machines.

I am using the cl unison, not the gui one

Ideally I woudl want to use a bat file that calls unison with a profile. This profile includes the roots, paths etc.

My problem is that I would nee to use the %USERPROFILE% when stteing the roots, as users in both machines are different.

Can I use environment variables in PROFILES? I haven't succeded so far... Is there any other way of doing this?

Thx in advance for your help!



You mention that you're calling unison from a batch file, could you set those particular parameters from the command line (which does support variables) rather than from within the profile itself?

Or if you're not using a batchfile and calling unison directly from a shortcut, you can add a "%systemroot%\system32\cmd.exe /c " in front of the command line, cmd.exe will expand any variables on the command line, bypassing the need for a 1-line batch file.

Another, more complicated-but-possibly-more-flexible, option would be to create a batchfile that uses ECHO statements in the batch file to construct %USERNAME%.prf (by using ECHO, cmd.exe would take care of variables for you), using the INCLUDE directive to include in the other profile which contains the primary settings (or vise-versa, include in the constructed .prf from the main one, depending on what fits)

Both approaches are a bit roundabout, but will get the job done and will let you tweak on a per-machine or per-environment basis.
-- Dave Warren http://www.hireahit.com/ http://ca.linkedin.com/in/davejwarren

__._,_.___

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

__,_._,___
wbyeats74 | 17 Apr 2012 08:40
Favicon

Synching two different USB drives not connected simultaneously

I'm trying to find a software that can handle my requirement. I have a notebook that I use at work and Home. I
have an external usb drive here at work and another one at home. I would like to find a software that
synchronize those two drives via my notebook.

This thing should be done in different ways but what I expect should be a behavior like this one:

I get to work and use the external HD. Meanwhile in the notebook (or remotely via a NAS or FTP server) it tracks
down every file I add or modify or delete. When I get home with my laptop and connect to the other drive the
software should recognize the drive and sync it with the info the notebook collected. Then it starts
collecting infos on the change I make on the Home HD that will be synched to the Work HD whenever I reconnect
to it. And so on

Is there any chance to configure Unison to work this way? How should I do this?

Thanks a lot in advance for your reply.

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

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 | 17 Apr 2012 09:36

Re: Synching two different USB drives not connected simultaneously

On 17 avr. 2012, at 08:40, wbyeats74 wrote:

> I'm trying to find a software that can handle my requirement. I have a notebook that I use at work and Home. I
have an external usb drive here at work and another one at home. I would like to find a software that
synchronize those two drives via my notebook.
> 
> This thing should be done in different ways but what I expect should be a behavior like this one:
> 
> I get to work and use the external HD. Meanwhile in the notebook (or remotely via a NAS or FTP server) it
tracks down every file I add or modify or delete. When I get home with my laptop and connect to the other drive
the software should recognize the drive and sync it with the info the notebook collected. Then it starts
collecting infos on the change I make on the Home HD that will be synched to the Work HD whenever I reconnect
to it. And so on
> 
> Is there any chance to configure Unison to work this way? How should I do this?

If I read between the lines, you don't want the files on the external HD to be duplicated in the notebook, you
only want the changed files to be there, so that they can be carried to the other HD. Is this correct?

If so, I'm afraid it goes beyond what Unison can currently do.

However, if you are ready to also have a copy of the files on the notebook, then it's simply a matter of setting
up two profiles: one to synchronize between notebook and external HD 1, and another between notebook and
external HD 2.

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/

Alan Schmitt | 17 Apr 2012 15:22

Re: Synching two different USB drives not connected simultaneously

On 17 avr. 2012, at 10:56, Mario De Carli wrote:

> You're correct. I don't want two have the same files in HD1, notebook and HD2 as in my notebook I only have
200gb left while in my 2hD I need to file more than 1.5tb.
> The notebook (ora nas or ftp or anything else) should be just a way to pass the data from hd1 and hd2

I you have access to both drives at the same time (through a NAS for instance), you could use Unison to
synchronize them. But I'm afraid the performances will be abysmal.

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/


Gmane