Kenny Clement | 2 Jun 2010 15:27
Picon
Gravatar

Force replica but don't allow deletes?

Hello,

As the subjects says, I'm trying to do a 'sync' where I force the  
server replica.
However, if the file exists locally, but not on the server, I don't  
want unison to delete the file.

Is there an option in unison so that it doesn't delete files?

The unison sync is part of a script, using Path statements (and the  
batch setting).
So I'm actually doing a sync stating sync THOSE specific paths, force  
server replica, but I don't want it to delete my files.

Is this possible?

thanks,

- Kenny

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

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)

Jerome Vouillon | 2 Jun 2010 18:38
Picon

Re: Force replica but don't allow deletes?

Hello,

On Wed, Jun 02, 2010 at 03:27:03PM +0200, Kenny Clement wrote:
> As the subjects says, I'm trying to do a 'sync' where I force the  
> server replica.
> However, if the file exists locally, but not on the server, I don't  
> want unison to delete the file.

With Unison 2.40.16, you can add the following options to your profile:
   force = <remote_root>
   nodeletion = <local_root>
(where the roots are set appropriately).

-- Jerome

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

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)

Scott Bohler | 2 Jun 2010 22:38

Re: Force replica but don't allow deletes?

Hi Kenny,

I recommend using -backups in order to keep such files.  This maintains both proper synchronization and files that would have been deleted

Scott Bohler



On 6/2/2010 8:27 AM, Kenny Clement wrote:
 

Hello,

As the subjects says, I'm trying to do a 'sync' where I force the
server replica.
However, if the file exists locally, but not on the server, I don't
want unison to delete the file.

Is there an option in unison so that it doesn't delete files?

The unison sync is part of a script, using Path statements (and the
batch setting).
So I'm actually doing a sync stating sync THOSE specific paths, force
server replica, but I don't want it to delete my files.

Is this possible?

thanks,

- Kenny



__._,_.___

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