From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Re: advice needed: how do you guys sync org files between devices? Date: Mon, 8 Jul 2013 17:41:57 -0400 Message-ID: References: <51D5322D.7000107@wilkesley.net> <87a9lxujxy.fsf@earlgrey.lan> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b2e4a96f5131b04e106e9b2 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwJC5-00062e-Ro for emacs-orgmode@gnu.org; Mon, 08 Jul 2013 17:42:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UwJC3-0005PE-7J for emacs-orgmode@gnu.org; Mon, 08 Jul 2013 17:42:01 -0400 Received: from mail-oa0-x22a.google.com ([2607:f8b0:4003:c02::22a]:36150) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwJC3-0005Oy-0j for emacs-orgmode@gnu.org; Mon, 08 Jul 2013 17:41:59 -0400 Received: by mail-oa0-f42.google.com with SMTP id j6so7022052oag.1 for ; Mon, 08 Jul 2013 14:41:58 -0700 (PDT) In-Reply-To: <87a9lxujxy.fsf@earlgrey.lan> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Christopher Allan Webber Cc: org mode --047d7b2e4a96f5131b04e106e9b2 Content-Type: text/plain; charset=ISO-8859-1 Thx Chris its funny you just posted this as of all the excellent responses in this thread i was looking into git-annex as a solution. The issue is that im not very technical (im an academic not a programmer) and its seems mighty complicated. Also in addition git-assistant is currently isnt available for windows (which im forced to use at work unfortunately..) do you know of a good (simple) guide for git-annex? would you mind to elaborate more on your complete setup? also do you use it to sync with android? thx alot and thank you all who sent responses, its greatly appreciated ! best -itai On Mon, Jul 8, 2013 at 11:53 AM, Christopher Allan Webber < cwebber@dustycloud.org> wrote: > Ian Barton writes: > > > On 01/07/13 13:06, Xebar Saram wrote: > >> Hi all > >> > >> I have been using dropbox since i started using orgmode a few weeks ago > >> (yeah im a neewb :)), which kinda works but i find it very annoying as > >> it keeps creating conflicted copies, isnt reliable on my Linux main > >> machine etc etc.. > >> > >> I was wondering what you guys do for syncing org files between PC's, > >> Os's, devices (android etc).. > >> > > > > I used to use Dropbox and git. However, as you have found I often got > > "Conflicted Files". This is a particular problem if it happens in your > > .git folder, because it can lead to a corrupt git repo. Even though I > > have a remote git repo, this still lead to lots of wasted time trying to > > sort out the mess. > > > > Recently I have been using BitTorrent Sync from > > http://labs.bittorrent.com/experiments/sync.html So far this works > > really well. If you are using Linux you need to do a bit of fiddling to > > get it to run as your local user, as it doesn't preserve file > > permissions. So if you are running it as a daemon files at the remote > > end all get up being owned by root. > > > > The default is for two way synchronization. However, it's easy to set up > > one way sync. This is useful for backups. If you accidentally made a > > change in your backup, you wouldn't want it pushed back to your aster > > version. > > > > I also run a cron job on my laptop, which is my main work machine. Every > > hour this commits my org files to my git repo and pushes the changes to > > my remote on a different computer. > > > > Ian. > > Have you considered using git-annex with git-annex assistant? I'm doing > this now... it automatically syncs on each file save. I also have it > set up so that orgmode files get checked in as if regular git files > rather than moved to the annex like: > > [annex] > # uuid and "version" keys up here > largefiles = largerthan=100kb and not (include=*.org or > include=*.org_archive or include=*.txt or include=*.tex) > > This will thus commit any files < 100kb and orgmode / latex files as > just plain git files instead of moving them to the annex. > > I highly, highly recommend this setup. > - Chris > > --047d7b2e4a96f5131b04e106e9b2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thx Chris

its funny you just posted this as of all the excellent responses in this t= hread i was looking into git-annex as a solution. The issue is that im not very technical (im an academic not a programmer) and its seems mighty complicated. Also in= addition git-assistant is currently isnt ava= ilable for windows (which im forced to use at= work unfortunately..)
do you know of a good (simple) guide for git-annex? would you mind to = elaborate more on your complete setup?
also do you use it to sync= with android?

thx <= span class=3D"" style>alot and thank you all who sent responses, its= greatly appreciated !

best

-i= tai


On Mon, Jul 8, 2013 at 11:53 AM, Christopher Allan Webber <c= webber@dustycloud.org> wrote:
Ian = Barton writes:

> On 01/07/13 13:06, Xebar Saram wrote:
>> Hi all
>>
>> I have been using dropbox since i started using orgmode a few week= s ago
>> (yeah im a neewb :)), which kinda works but i find it very annoyin= g as
>> it keeps creating conflicted copies, isnt reliable on my Linux mai= n
>> machine etc etc..
>>
>> I was wondering what you guys do for syncing org files between PC&= #39;s,
>> Os's, devices (android etc)..
>>
>
> I used to use Dropbox and git. However, as you have found I often got<= br> > "Conflicted Files". This is a particular problem if it happe= ns in your
> .git folder, because it can lead to a corrupt git repo. Even though I<= br> > have a remote git repo, this still lead to lots of wasted time trying = to
> sort out the mess.
>
> Recently I have been using BitTorrent Sync from
> http://labs.bittorrent.com/experiments/sync.html So far this w= orks
> really well. If you are using Linux you need to do a bit of fiddling t= o
> get it to run as your local user, as it doesn't preserve file
> permissions. So if you are running it as a daemon files at the remote<= br> > end all get up being owned by root.
>
> The default is for two way synchronization. However, it's easy to = set up
> one way sync. This is useful for backups. If you accidentally made a > change in your backup, you wouldn't want it pushed back to your as= ter
> version.
>
> I also run a cron job on my laptop, which is my main work machine. Eve= ry
> hour this commits my org files to my git repo and pushes the changes t= o
> my remote on a different computer.
>
> Ian.

Have you considered using git-annex with git-annex assistant? = =A0I'm doing
this now... it automatically syncs on each file save. =A0I also have it
set up so that orgmode files get checked in as if regular git files
rather than moved to the annex like:

[annex]
=A0 =A0 =A0 =A0 # uuid and "version" keys up here
=A0 =A0 =A0 =A0 largefiles =3D largerthan=3D100kb and not (include=3D*.org = or include=3D*.org_archive or include=3D*.txt or include=3D*.tex)

This will thus commit any files < 100kb and orgmode / latex files as
just plain git files instead of moving them to the annex.

I highly, highly recommend this setup.
=A0- Chris


--047d7b2e4a96f5131b04e106e9b2--