From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Subversion for backups? Date: Wed, 26 Aug 2009 14:06:45 -0400 Message-ID: <87iqgaa1qi.fsf@fastmail.fm> References: <87ab1nd1ns.wl%ks@mocker.org> <4A952F65.3070005@online.de> <87fxber8zb.wl%ks@mocker.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MgMpM-0004sr-U3 for emacs-orgmode@gnu.org; Wed, 26 Aug 2009 14:02:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MgMpI-0004lO-BA for emacs-orgmode@gnu.org; Wed, 26 Aug 2009 14:02:32 -0400 Received: from [199.232.76.173] (port=38594 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgMpH-0004lB-OY for emacs-orgmode@gnu.org; Wed, 26 Aug 2009 14:02:27 -0400 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:43762) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MgMpH-0001dE-6E for emacs-orgmode@gnu.org; Wed, 26 Aug 2009 14:02:27 -0400 In-Reply-To: <87fxber8zb.wl%ks@mocker.org> (Kyle Sexton's message of "Wed, 26 Aug 2009 08:38:16 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Kyle Sexton Cc: org-mode Kyle Sexton writes: > At Wed, 26 Aug 2009 14:49:41 +0200, > Rainer Stengele wrote: >> >> I use subversion to backup and track my org files. >> I have a server in my office running the subversion server. >> >> Access is by port forwarding the subversion port via ssh - no matter >> being under windows (putty) or under Linux (ssh). >> In this way I have my subversion server and repository virtually >> "local", that is acces is always via >> >> svn://localhost/repository >> >> >> I also track all my .emacs.d specific files, especially the org-mode >> files themselves as well as icicles and all kinds of libraries etc. >> This makes it easy to update my whole emacs installation on any of my 3 >> desktops and 3 notebooks. >> > > Interesting, can you describe your workflow a bit? > > 1. Do you commit a change to subversion every time you update an org > file, or are commits scheduled through a cronjob? > > 2. When you open new files, do you always check them out of the > repository / work / check them back in? Or do you work on a local > directory structure and sync outside of emacs? > > 3. Can you post some of the relevant config lines you have, and the > key sequences you use for commits? (This may be asking too much. :)) > > Thanks in advance, I've seen several ways to do this and I'm trying to > weigh the merits of each approach. A while ago, I used to keep everything in subversion. If I remember correctly, I made heavy use of the svn commands ("svn mv", "svn cp", "svn add", etc.) and used psvn.el to manage my repository within emacs. I wasn't really worried about keeping detailed log messages so I used a basic alias: --8<---------------cut here---------------start------------->8--- alias commit='svn commit ~/mystuff -m "Sync"' --8<---------------cut here---------------end--------------->8--- I just made sure to invoke this regularly. This is a bit off-topic, but I found the separation of repository and working files in SVN a bit cumbersome after a while. You can't view your history when you aren't connected to the remote repository, your history is in only one place, you have duplicate files in the .svn directories, etc. For this reason I highly recommend a distributed version control system such as git, bzr, etc.. You can start locally quite easily ("git init", "git add .", "git commit -a") and then decide to create a remote repository whenever you'd like. In fact, there's a nice tutorial on this: http://orgmode.org/worg/org-tutorials/org-vcs.php Best, Matt