Problemas de raiz / caminho dos perfis do Unison

0

Estou tentando sincronizar duas pastas entre si (uma local, uma remota) usando uníssono.

Se eu usar um comando padrão como este ...

unison -times /Volumes/My\ HD/Work ssh://myremoteserver//volume1/My\ Files/Work

... funciona. Eu sei que funciona porque mostra todos os arquivos que precisam ser transferidos de x para y.

No entanto, se eu criar um perfil para essa função, assim ...

# Roots of the synchronization
root = /Volumes/My\ HD
root = ssh://myremoteserver//volume1/My\ Files

# Paths
path = Work

# Some regexps specifying names and paths to ignore
ignore = Path @eaDir
ignore = Name *.DS_Store

log = true
times = true

Isso traz essa mensagem constantemente ...

Looking for changes
Warning: No archive files were found for these roots, whose canonical names are:
    /Volumes/My\ HD
    //Server//volume1/My\ Files
This can happen either
because this is the first time you have synchronized these roots, 
or because you have upgraded Unison to a new version with a different
archive format.  

If you see this message repeatedly, it may be because one of your machines
is getting its address from DHCP, which is causing its host name to change
between synchronizations.  See the documentation for the UNISONLOCALHOSTNAME
environment variable for advice on how to correct this.

.. e depois diz que não há mudanças a serem feitas.

Estou ciente da dica mencionada acima sobre o DHCP, não tenho certeza se isso se aplica a mim como usando o comando único ssh://myremoteserver works, só se torna um problema ao incluí-lo em um .profile. / p>     

por Imran 28.10.2013 / 23:49

1 resposta

2

É porque usei \ para escapar de espaços, mas estes não são necessários para .profiles

    
por 29.10.2013 / 01:42