On Wed, May 7, 2014 at 9:46 AM, Baruch Burstein <bmburst...@gmail.com>wrote:

> On Wed, May 7, 2014 at 8:03 AM, Gerald Gutierrez <
> gerald.gutier...@gmail.com> wrote:
>
>>
>> I have a fossil repository that I use on two machines, one at work and
>> one at home. For this one, I'd rather not host it at an online location. So
>> I tried to to put the fossil file on Dropbox instead so that Dropbox will
>> automatically sync the file between the two machines.
>>
>> Since I've tried to do this, I occasionally get "database is locked"
>> errors when trying to commit on one of the two machines. Could I be
>> corrupting the fossil file somehow this way? Is this advisable?
>>
>
> Assuming both computers are always connected and you only use one at a
> time, this shouldn't be a problem (I do this too). The problems start when
> you do commits on both computers without Dropbox having synced the file in
> between. But even then it doesn't corrupt the file, just leaves you with
> two copies with diverging histories.
>

+1. i've done this before (not recently), and haven't run into problems,
but it "should" be a problem if one or another machine goes offline and
work happens on both. i don't like to host checkouts in dropbox because all
the temp files (*.o, *.so, etc.) sync and basically cause dropbox to thrash
constantly.

i've hosted repo files on dropbox before (not shared - only 1 user), that
works fine. Never had a problem with it, except that the journal file might
get synced (potentially causing a problem if timing is particularly bad,
though i've never seen anything bad happen there).

The lock you're seeing is almost certainly your dropbox and "should" be
harmless. sqlite locks the db as needed, and Dropbox "should" recognize
that and not touch the file as long as it's locked (but posix locks are
advisory locks, not required to be honored!).


-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to