From: Matt Lundin <mdl@imapmail.org>
To: Kyle Sexton <ks@mocker.org>
Cc: org-mode <emacs-orgmode@gnu.org>
Subject: Re: Subversion for backups?
Date: Wed, 26 Aug 2009 14:06:45 -0400 [thread overview]
Message-ID: <87iqgaa1qi.fsf@fastmail.fm> (raw)
In-Reply-To: <87fxber8zb.wl%ks@mocker.org> (Kyle Sexton's message of "Wed, 26 Aug 2009 08:38:16 -0500")
Kyle Sexton <ks@mocker.org> writes:
> At Wed, 26 Aug 2009 14:49:41 +0200,
> Rainer Stengele <rainer.stengele@online.de> 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
next prev parent reply other threads:[~2009-08-26 18:02 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-25 21:27 Subversion for backups? Kyle Sexton
2009-08-25 22:16 ` Bernt Hansen
2009-08-26 12:49 ` Rainer Stengele
2009-08-26 13:37 ` Kyle Sexton
2009-08-26 13:38 ` Kyle Sexton
2009-08-26 14:30 ` Manish
2009-08-26 18:06 ` Matt Lundin [this message]
2009-08-27 17:27 ` Robert Goldman
2009-11-04 11:49 ` Adam Spiers
2009-11-04 14:01 ` Rick Moynihan
2009-11-10 13:49 ` Eric S Fraga
2009-08-31 15:05 ` Sébastien Vauban
2009-08-31 21:16 ` Rainer Stengele
2009-09-02 15:26 ` Sébastien Vauban
2009-09-05 13:28 ` Greg Newman
2009-09-07 22:31 ` Bastien
2009-09-08 8:42 ` Greg Newman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87iqgaa1qi.fsf@fastmail.fm \
--to=mdl@imapmail.org \
--cc=emacs-orgmode@gnu.org \
--cc=ks@mocker.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).