Summary

This spec discuss the inclusion and integration of a remote synchronization/storage/sharing solution in Edgy. The proposed solution is currently based on unison, although suitability of other tools (may be one of the version control systems, i.e. Mercurial) should be considered.

Rationale

Having a multiple computers configuration is more and more common everyday : one desktop at work, one desktop at home, one laptop. Keeping tracks of a given file or synchronization is often a real pain. Also, there's no easy way to share a file across the Internet if you don't have webserver and the knowledge of ftp/sftp.

Use cases

  1. Emma will soon fly to a conference in America with her whole new laptop. She wants to be sure that she can access all the necessary files that are on her home computer.
  2. Joe wants to share a 6 MB file with Jack. Unfortunately, his SMTP service will only allow mail messages that are less than 5 MB.
  3. William can never remember if a given file is on his laptop or desktop. Sometimes the file is on the desktop AND on the laptop, but he only wants the newest version.
  4. Sally has three computers, and wants a common home directory, including her Firefox extensions, and mail setup.

Scope

Design

General

A special location in the file browser will show all nodes from LAN having files for sharing. Selecting a node will show all it's shares and right clicking a share will display a context menu with available actions (open, sync to, sync from)

Extended attributes or nautilus emblems should be used to mark folders for syncing/not syncing, public or private share, instead of the clumsy and incomprehensible Unison configuration files.

File sharing

File synchronization

From the Preferences Dialog the user could allow a default set of sync targets. This will enable a user to easily configure home dir syncing of things like firefox bookmarks/extensions (whole profiles, extensions, without caches!!!).

From the Prefereces Dialog the user could check what to sync between home folders (see above), and choose whether to sync video, music, or other large files. This could be bandwidth dependent, something which can be tested.

From the Preferences Dialog the user could check if he/she want all folder synchronized at log on or select some of them.

From the Preferences Dialog the user could manualy add new synchronization shares. This will allow Ubuntu Synchronization to work with other system.

A remote folder will be synchronized with the local folder having the same path.

User Friendly Unison

Implementation

Existing solutions

iFolder has disadvantages compared to Unison: it is less conservative in wiping data instead of adding new files. However, it is supported albeit semi-commercial, whereas Unison appears to be stagnant.

iFolder had a great disadvantages compared to Unison: you need the server part! In many use cases Ubuntu Linux is used just on the client side and the server side is some other GNU/Linux based distribution. Having a static build of Unison (for Linux, FreeBSD, Solaris) we will only need a valid ssh account on another computer.

Architecture

DNS-SD entries

* public share - anonymous ftp

* private share - ssh and sftp-subsystem

* sync share - ssh and sftp-subsystem

=== Emblems used===

* public share - anonymous ftp

* private share - ssh and sftp-subsystem

* sync share - ssh and sftp-subsystem

Screenshots

Preferences Dialog

http://adi.roiban.ro/misc/Screenshot-FShare Preferences.png

http://adi.roiban.ro/misc/fshare.glade

Data preservation and migration

Outstanding issues

BoF agenda and discussion

Update: The 3.x open source versions of iFolder can operate in p2p mode using Avahi and has the advantage of being cross platform.

* Take a look at Conduit (http://www.conduit-project.org/). It does synchronization. Gshare handles file sharing already, http://yimports.com/~cpinto/projects/gnome/gshare

* Realistically, any app which will easily share files across a trusted local network is going to have security issues or is going to require a knowledge base above that of the average PC user. There are also plenty of 3rd party solutions to internet information sharing (IM transfers, email, rapidshare, dropbox (soon) etc etc). Why don't we concentrate on something robust for a local network - this is increasingly important with laptots like the Asus EEE pc, which bring multi-pc syncing issues to a new userbase.

* Having all shares at location "network:///" might be a problem in the case of many share available in the LAN. It will be difficult to locate them. Instead the usage of a location "fshare://blinky" will display all shares provided by node "blinky". Depending of the share type opening a share will redirect the file browser to a scp:// or ftp:// location.

* Emblems are a good way of taging files. Unfortunatly Nautilus has to many emblems shiped by default and no application make use of them. It would be great to manage all share/sync options using emblems. Like having special emblems for public share, private share, sync folder, sync at startup, master sync (don't delete files)

* Using Source Control Managemnt Tools could be useful for backup, but I dont' think we need to do synchronization with it. These tools are designed for text files. There is a reference of using such tools for simulating "time machine" on the Ubuntu GSoC2007 Page.


CategorySpec

Ideas

Just to add some ideas, stuff, here is a project, I'm thinking about. It talks about the concept of personal domain, which may give some ideas about multiple computer synchronization.


CategoryUdu

MultipleComputersSynchronization (last edited 2008-08-06 16:26:19 by localhost)