Question about .unison-folder and syncing via SSH
dennis.kolberg <lemonman <at> gmx.de>
2010-12-12 11:31:12 GMT
Hello everybody,
I've got a question referring the .unison-Folder:
MY SITUATION:
I want to sync my Windows-laptop with my Linux-based NAS. To keep a backup, I defined a global
backup-direcotry (e.g. "C:\Backup") in the profile of unison on the Windows-system.
On the NAS, the Linux' $HOME-Folder is on a ramdisk, which will be reset after every reboot. So I can't use the
$HOME/.unison-Folder for saving the profile-files, archive-files and backup-files.
MY PROBLEM:
When I start unison on my laptop an sync a laptop-folder with a NAS-folder via SSH-connection, changed and
deleted files on the NAS are stored in a sub-folder of the Linux-$home-directory (e.b.
"/root/C:\Backup"). The backup-folder has the same name as the one on the Windows-machine.
A second problem is the archive-file: It is saved in a sub-folder of the $HOME-direcotry (/root/.unison).
After every reboot this file will be deleted.
WHAT I HAVE TRIED SO FAR:
I defined a $UNISON environment variable on the NAS to use a different folder than "/root/.unison".
When I type "export", the variable is displayed correctly and if I start unison on the NAS and sync two
folders on the NAS, it works.
But as soon as I start unison on the windows-machine and synchronise a windows-folder with a linux-folder
via SSH, it fails. It uses the parameters of the windows-unison (backup-folder) and ignores the $unison-variable.
MY QUESTION:
Why does unison use the windows-parameters? Did I make something wrong?
Is there a way to tell unison on the NAS, that it should use a different location for the archive- and
backup-files?
After 3 days of trial & error I would be please if somebody could help me! Many thanks in advance!
Greetz,
Dennis
PS: I'm using unison 2.27 (unfortunately I didn't get 2.32 compiled on the NAS)
------------------------------------
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/