Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Make my own Dropbox / Ubuntu One server at home

We are running some groupware (group-office) on an ubuntu server, however it suports syncing only for calendars, addresses and notes, but not for files.

How could I sync a folder on the ubuntu server with ubuntu one, without installing Gnome? Is there any command line interface to tell my server how to connect to the ubuntu one account?

share|improve this question

marked as duplicate by Jorge Castro, hhlp, htorque, Takkat, Bruno Pereira Feb 3 '12 at 0:28

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

As far as I know, the Ubuntu one server side software is proprietary, so that it is impossible to host your own Ubuntu One server. However there are several other techniques that can be employed in order to share your files across multiple computers. There is

  • sshfs: a filesystem which allows you to mount any remote file system you can access via SSH. So basically all you need on your server is an SSH server running and sshfs on your clients. sshfs mounts can be automatically mounted using the /etc/fstab file or using autofs.

  • nfs: the network file system is rather more complicated to deploy and (if not used correctly) has security issues. To my shame I have not looked into it deeply.

  • rsync: of course as bodhi.zazen suggests, you can always use rsync to "backup" your files. The problem with rsync is that unlike the Microsoft SyncToy out of the box it does not do two-way merging (and I am yet to find the option in rsync for that). Also unlike the two suggestions outlined above rsync does true synchronization as opposed to sharing one file system which is what the other two do. This has an upside: all changes are immediately shared between clients, and a downside: the mount is only available, when internet connectivity is available.

  • git: another option I may suggest to you, if you are manly working with text files is git. you can use it in a similar fashion as rsync but you gain the ability to roll back changes and better merge support (what happens, when two clients modify a file?). The downsides of this solution are a much higher disk space consumption (all of the incremental updates have to live somewhere) and a complicated user interface (as git is a source control tool, one has to create commits to share documents).

share|improve this answer
Unison does two-way sync. – regan Dec 21 '11 at 3:18
He didn't ask to host an Ubuntu One service, but to use his Ubuntu Server as a client for Ubuntu One. – Jo-Erlend Schinstad Dec 21 '11 at 3:43

For your needs you can use rsync.

The basic syntax is

rsync -az -e ssh /home/path/directory_to_sync/ remoteuser@server:/home/path/directory_to_sync

As you can see, rsync will work over ssh (remoteuser@server) and is thus quite secure.

rsync will only transfer files that have changed (so it saves on bandwidth) and can be run from cron , as root if you would want to sync /home for example.

See the ubuntu rsync page for details.

share|improve this answer
As far as I'm aware, Ubuntu One doesn't support rsync. – Jo-Erlend Schinstad Dec 21 '11 at 3:43

While officially we don't support working without X and GNOME, some people have succeeded: YMMV

share|improve this answer
This looks very promising. The author has just published an update:… – Roland Dec 30 '11 at 19:48

Not the answer you're looking for? Browse other questions tagged or ask your own question.