Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dropbox like service with git -- no with rsync and inotify

Do you have any advice as how to setup a Dropbox like service using git?

Do you think git is the right tool for this?

I was thinking about using a git + rush solution what do you think about it?

like image 283
tommasop Avatar asked Apr 22 '10 13:04

tommasop


2 Answers

Checkout this open source project: https://github.com/hbons/SparkleShare

From the project's README:

How does it work?

SparkleShare creates a special folder on your computer. You can add remotely hosted folders (or "projects") to this folder. These projects will be automatically kept in sync with both the host and all of your peers when someone adds, removes or edits a file.

like image 92
Flavio Avatar answered Sep 22 '22 05:09

Flavio


If you own a remote server and you are running linux then you can simply have a folder that you rsync set it up as a 'every 10 seconds' chron job for example.

There was a thing you can install onto linux that gives you the mac time vault or windows shadow copies like feature. Have this running on the remote server.

This is by no means going to be as good as a service dropbox currently gives you, but it is free, save the server space...

UPDATE

Having read up more about how Git works (check out the wiki page, quote from Linus is top notch) seems all you would need is to get the remote sever, and set up a cron job that regulary commits your changes and downloads any updates, as this way you can share files as well as sync with multiple computers.

Not sure how secure Git is, can others just start reading it or do they need to know a password or something? in which case, run it in an encrypted partition.

like image 22
thecoshman Avatar answered Sep 22 '22 05:09

thecoshman