Re: backup -- only backing in certain scenarios.

Greg Troxel <[email protected]>
Newsgroups gmane.network.unison.general
Message-ID <[email protected]>
V Lo <[email protected]> writes:

> Hello,
> I am hoping someone can give me some advice on 'backup' using unison. I 
> have a client/server setup with 
>           backup = Name *
> I run: 
> unison /my/secret/drive ssh://client//my/secret/drive

Unison is a synchronization program, not a backup program.  It
propagates changes from each side to the other side.  For backup, people
generally want to save state such that previous states are preserved.
So while backup is a useful feature, it doesn't do what you might want.

You haven't described your goals, so it's hard to know.

> Scenarions:
>
>    1. Place a file in client, unison sync file to server. Remove the file 
>    from *server*. On next unison run,  file is backed up

Meaning removed from client, and added with some backup path?

>    2. Place a file in client, unison sync file to server. Remove the file 
>    from *client*. On next unison run,  file is NOT backed up

Do you mean it does not appear as a backup file in either client or server?

>    3. Place a file in server, unison sync file to client. Remove the file 
>    from *server*. On next unison run,  file is backed up 
>    4. Place a file in server, unison sync file to client. Remove the file 
>    from *client*. On next unison run,  file is NOT backed up 

I think you are saying that client files are backed up, server are not.

> It seems like when I remove files from 'server', the backup option works on 
> the next unison run. However, when I remove a file from client, the backup 
> does not activate. 
> How can I backup a file when it is removed from the client side?

A good question.  It might be that backup is intended to save copies of
files that unison deletes, and you are deleting them yourself in some
cases.

Did you read the manual thoroughly about all the backup options?  There
are a lot of them.  (My usual rant: unison is too complicated and should
be simplified!)


-- 
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.