← Back to team overview

gtg-contributors team mailing list archive

Re: Syncronising in GTG

 

On Sun, Jun 20, 2010 at 5:40 PM, Marko Kevac <marko@xxxxxxxxx> wrote:
> On Sun, Jun 20, 2010 at 7:34 PM, Luca Invernizzi <invernizzi.l@xxxxxxxxx> wrote:
>> Hi Marko,
>> why don't you just edit .local/share/project.xml so that he points to
>> your wanted location?
>>
>> I'm already working on that so that the user doesn't need to edit xml
>> manually, but I still miss parts of the UI.
>>
>>  Luca
>>
>
> I can do that, but it's not very straightforward way.
>
> marko@marko-desktop:~/.local/share/gtg$ ls -la
> total 48
> drwxr-xr-x  2 marko marko 4096 2010-06-20 19:03 .
> drwx------ 19 marko marko 4096 2010-06-20 18:59 ..
> -rw-r--r--  1 marko marko 6681 2010-06-20 19:03
> 49682e87-86e5-4030-b759-6372a224776f.xml
> -rw-r--r--  1 marko marko 6681 2010-06-20 19:03
> 49682e87-86e5-4030-b759-6372a224776f.xml.bak.0
> -rw-------  1 marko marko    4 2010-06-20 19:01 gtg.pid
> -rw-r--r--  1 marko marko  133 2010-06-20 19:03 projects.xml
> -rw-r--r--  1 marko marko  133 2010-06-20 19:03 projects.xml.bak.0
> -rw-r--r--  1 marko marko  133 2010-06-20 19:01 projects.xml.bak.1
> -rw-r--r--  1 marko marko  133 2010-06-20 18:59 projects.xml.bak.2
> -rw-r--r--  1 marko marko   35 2010-06-20 19:03 tags.xml
>
> Why do we need this projects, tags? Why not just use one file for database?
>
> Can you please explain why we need project.xml and tags.xml?
>

The three xml have been done because they store things that are
conceptually different.
- Tags.xml holds tags metadata (colors and parent-child dependencies),
- Project.xml is the main file  and holds a description of all gtg
backends (GTG was designed from the beginning to be capable of storing
tasks in multiple backends)
- the rest are backups of your tasks (including the most current
list), which is a particular backend.

Being xml, you can always merge them in a single file, but personally
I like this division.
 This way, for example, you can keep two  localfile backends in two
different locations, one in the usual .local/share/gtg and one on your
pendrive. When you don't have your pendrive connected, GTG behaves
normally.When you connect it, tasks are (will be, actually)
automatically updated to the most recent version in both files. If you
lose your pendrive, you're still safe :).



>
> --
> A. Because it breaks the logical sequence of discussion
> Q. Why is top posting bad?
>



Follow ups

References