298 words — 2 minutes read

Joyent, Strongspace and my Samba Server

We use Joyent (affiliate link) for our mail (born out of Textdrive). Last weekend, the Joyfolks updated the application to a new version (and had quite a few problems in the process). One of the new features is Strongspace integration. Strongspace is a secure storage on the Net (accessible through SFTP, SCP and the like) that I have used for online backups for quite a while.

At first I didn’t think much of the integration, but then it dawned on me, that I could sync our companies shared folder (which lives on a Samba server) to Joyent to get access to all our data when not in the office. Turns out, that this is really easy to do:

The company share lives in /home/samba/company. I set up a cron job that sync the share every 15 minutes to the Joyent server:

0,15,30,45 * * * * rsync -azvCL --progress --delete /home/samba/company/ login@company.joyent.net@company.joyent.net:company/

This sync all changes from the Samba server to the Joyent server. Because rsync assumes that there is one master source for syncing, it doesn’t really support two-way syncing. Files that are added to the Joyent connector are deleted on the next rsync. I can live with that limitation for the moment.

In order to allow for syncing without passwords, I use ssh keys. My backup guide has details on how to do that. Because I sync from my server to the Joyent server, I created a key with an empty password and copied it to the .ssh directory on the Joyent connector.

Neat! And Joyent has just become much more usable. Now if they only would fix some of my peeves (like weeks starting on sunday instead of monday and the lack of a 24 hour clock) I’d be really happy.

Technorati Tags: joyent, rsync

Jens-Christian Fischer

Maker. Musician