LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Unison - syncing specific folders (https://www.linuxquestions.org/questions/linux-networking-3/unison-syncing-specific-folders-663794/)

toni_uk 08-19-2008 05:12 AM

Unison - syncing specific folders
 
Hi All,
i have alrady posted this on the Ubuntu forum but have not yet received an answer. This is why I am posting it here too in the hope someone can help.

http://ubuntuforums.org/showthread.php?t=893328

I have been attempting to sync my music between my laptop and my desktop over the weekend. I have set up ssh successfully and the two are connecting fine. What I attempted to do was to sync the following:

/media/Storage/Music on my laptop (PIII, Xubuntu Hardy)

with
/home/other_user/Music on my desktop (AMD64, Ubuntu Hardy)

with Unison I picked to sync from my laptop to my desktop. Ticked SSH and put my username in. It started to sync but as it turned out it was syncing '/media/Storage/Music' with my home folder on the desktop only not the '/home/other_user/Music' How can I specify a specific folder to sync with another specific folder?

Thanks!

grepmasterd 08-19-2008 01:44 PM

you have to log in to the desktop as 'other_user'.

~# cat .unison/mymusic.prf
root = /media/Storage/Music/
root = ssh://other_user@desktop/Music/
batch = true

you can also specify full path, but this is not necessary if you can just log in as 'other_user':
root = ssh://other_user@desktop//home/other_user/Music/

also, this shouldn't be under networking but under software or desktop.

toni_uk 08-19-2008 02:29 PM

Grepmasterd, thanks - that worked well.


All times are GMT -5. The time now is 08:54 PM.