emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: [Feature request] org-backup


From: Marcelo de Moraes Serpa
Subject: [Orgmode] Re: [Feature request] org-backup
Date: Tue, 15 Feb 2011 10:44:13 -0600

Ah, yeah, subdirs. I had misunderstood you.

Cheers,

Marcelo.

On Mon, Feb 14, 2011 at 4:56 PM, Dan Davison <address@hidden> wrote:
> Marcelo de Moraes Serpa <address@hidden> writes:
>
>> Hi Dan,
>>
>> I don't think I understood -- AFAIK, git repos are per directory and I
>> can't add something from another directory to it ?
>
> Hi Marcelo,
>
> Let's say the "base directory" of a git repo is the one in which you
> issued "git init" and which contains a hidden ".git" subdirectory. You
> can add files from anywhere in the directory tree rooted at the base
> directory. In other words, if you make a git repo in your home directory
>
> cd ~
> git init
>
> you can add files from any subdirectory of your home directory. Just an
> idea.
>
> Dan
>
>>
>> Symlinking could be a possibility, like keeping everything inside
>> ~/org and symlink to another dirs.
>>
>> Cheers,
>>
>> Marcelo.
>>
>> On Mon, Feb 14, 2011 at 6:38 AM, Dan Davison <address@hidden> wrote:
>>> Marcelo de Moraes Serpa <address@hidden> writes:
>>>
>>>> Hi Dan!
>>>>
>>>> I already do this, but sometimes the files are spread around *many*
>>>> directories. I.e, the model of having everything in a
>>>> version-controlled directory is unpractical, so that's why I think it
>>>> would be useful.
>>>
>>> A couple of possibilities:
>>>
>>> A git repo doesn't have to be limited to a single directory. You could
>>> have a git repo in your home directory, and git add org files, wherever
>>> they may be located using a command something like
>>> find . -type f -name '*.org' -exec git add '{}' \;
>>>
>>> You could use symlinks where posible, so that your org files are all in
>>> one directory, and project directories contain symlinks to those org
>>> files.
>>>
>>> Dan
>>>
>>>>
>>>> Marcelo.
>>>>
>>>> On Sun, Feb 13, 2011 at 3:49 PM, Dan Davison <address@hidden> wrote:
>>>>> Marcelo de Moraes Serpa <address@hidden> writes:
>>>>>
>>>>>> Hi list,
>>>>>>
>>>>>> Although I try to keep all my org files inside a ~/org directory, I
>>>>>> often find myself creating org files outside of this directory
>>>>>> context, for example, as a bucket for a new project I'm working on, to
>>>>>> keep notes, todos, etc.
>>>>>>
>>>>>> It'd be nice if we had a org-backup function that would fetch all
>>>>>> files from the agenda + linked files and create a compressed backup of
>>>>>> them. What do you think?
>>>>>
>>>>> Hi Marcelo,
>>>>>
>>>>> I think backing up text files is a job for other tools; not emacs. I'd
>>>>> recommend using a version control tool such as git for this.
>>>>>
>>>>> Dan
>>>>>
>>>>>>
>>>>>> Cheers,
>>>>>>
>>>>>> Marcelo.
>>>>>>
>>>>>> _______________________________________________
>>>>>> Emacs-orgmode mailing list
>>>>>> Please use `Reply All' to send replies to the list.
>>>>>> address@hidden
>>>>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>>>>
>>>>
>>>> _______________________________________________
>>>> Emacs-orgmode mailing list
>>>> Please use `Reply All' to send replies to the list.
>>>> address@hidden
>>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> address@hidden
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]