2

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?

Roland
  • 21
  • 1

3 Answers3

1

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).

niklasfi
  • 236
0

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.

Panther
  • 102,067
0

While officially we don't support working without X and GNOME, some people have succeeded: http://per.liedman.net/2011/01/22/using-ubuntu-one-for-backup-on-a-headless-server/ YMMV

  • This looks very promising. The author has just published an update: http://per.liedman.net/2011/12/28/using-ubuntu-one-from-a-headless-oneiric-ocelot/ – Roland Dec 30 '11 at 19:48