I need to sync a few folders on Ubuntu my laptop with a few folders on my Windows desktop.
I installed cifs-utils and unison-gtk, then mounted the Windows shared folders to a local mount point on the Ubuntu laptop:
Code:
sudo mount.cifs //winPC/documents/synced_files /mnt/winPC/synced_files -o user=jub2,uid=1000,gid=1000
I added "perms = 0" to the Unison preferences file.
This works for bi-directional syncing between folders.
Questions:
- I mounted the Windows shared folders to a local mount point because, as I understand it, without doing so, I would have to also run Unison on the Windows machine. Is this correct?
- If I have multiple Unison 'profiles' to sync, is there a way to batch them in the Unison GUI app? Or am I limited to selecting each profile individually and syncing?
- if I add the mount described in (1) to /etc/fstab, will this cause any issues when the Ubuntu laptop is started when not on the same network as the Windows desktop (i.e., when the mount caot be executed)? If so, how to perform this mount automatically, but only when the Windows desktop is available on the same network?
- should the mounted Windows shared folders be umounted before shutting down the laptop, or does it not matter?
برچسب:
نویسنده: استخدام کار
تاريخ: سه
شنبه
25 خرداد
1395 ساعت: 5:04