Difference between revisions of "bases"

From GeneWeb
Jump to: navigation, search
m
(update the cnt folder)
Line 57: Line 57:
 
** {{d}} bases: The folder containing the GeneWeb databases
 
** {{d}} bases: The folder containing the GeneWeb databases
 
*** {{d}} mybase.gwb: folder of the genealogical database called {{c|mybase}}
 
*** {{d}} mybase.gwb: folder of the genealogical database called {{c|mybase}}
**** {{d}} documents: image/txt/pdf/html files, subdirectories allowed <!--except portraits?-->
+
**** {{d}} cnt: holding access counts for the base and several access logs
***** {{d}} portraits: portraits images called with {{c|1=m=IM&i=index}}
+
***** {{f}} mybase_cnt.txt: access counts (and its .lck companion)
 +
***** {{branche finale}}{{f}} mybase_{w/f/u}.txt: access logs for wizards, friends and updates
 +
**** {{d}} documents: image/txt/pdf/html files, subdirectories allowed
 +
***** {{d}} portraits: portraits images called with {{c|1=m=IM&i=index}} (no sub-dirs here!)
 
****** {{f}} first_name.occurence.last_name.jpg
 
****** {{f}} first_name.occurence.last_name.jpg
 
****** {{f}} other_first_name.occurence.last_name.jpg
 
****** {{f}} other_first_name.occurence.last_name.jpg
Line 79: Line 82:
 
***** {{d}} templatex: personnal variant of templatex files
 
***** {{d}} templatex: personnal variant of templatex files
 
***** {{f}} mybase.conf (mybase-config.txt?): [[configuration|configuration/parameters file]] (old {{c|.gwf}})
 
***** {{f}} mybase.conf (mybase-config.txt?): [[configuration|configuration/parameters file]] (old {{c|.gwf}})
***** {{f}} mybase.count (mybase-counts.txt?): access counts
 
 
***** {{f}} mybase-f.auth (mybase-friend-auth.txt?): example of [[password#Specific access|password file for friends]] ({{c|1=friend_passwd_file=}} in {{c|mybase.conf}})
 
***** {{f}} mybase-f.auth (mybase-friend-auth.txt?): example of [[password#Specific access|password file for friends]] ({{c|1=friend_passwd_file=}} in {{c|mybase.conf}})
 
***** {{f}} mybase-w.auth (mybase-wizard-auth.txt?): example of password file for wizards ({{c|1=wizard_passwd_file=}} in {{c|mybase.conf}})
 
***** {{f}} mybase-w.auth (mybase-wizard-auth.txt?): example of password file for wizards ({{c|1=wizard_passwd_file=}} in {{c|mybase.conf}})
Line 96: Line 98:
 
*** {{d}} mybase2.gwb: folder of a second genealogical database {{c|mybase2}}
 
*** {{d}} mybase2.gwb: folder of a second genealogical database {{c|mybase2}}
 
**** {{branche finale}}[…] the organisation is the same for each database see description for mybase.gwb folder above
 
**** {{branche finale}}[…] the organisation is the same for each database see description for mybase.gwb folder above
*** {{d}} cnt: holding the robot file, locks, and memorising the access counts for each base
+
*** {{d}} cnt: admin files
 
**** {{f}} actlog: file temporary storing the tokens needed for login in CGI mode
 
**** {{f}} actlog: file temporary storing the tokens needed for login in CGI mode
**** {{f}} mybase.lck: lock file for mybase
+
**** {{f}} gwd.lck: lock file
 
**** {{branche finale}}{{f}} [[access#Robots management|robot]]: list IP addresses of detected robots
 
**** {{branche finale}}{{f}} [[access#Robots management|robot]]: list IP addresses of detected robots
 
*** {{f}} comm.log (log.txt?): execution log of the last base creation with a {{c|gwc}} command
 
*** {{f}} comm.log (log.txt?): execution log of the last base creation with a {{c|gwc}} command

Revision as of 11:31, 10 December 2018

150px-Geographylogo svg.png Language: English

The bases folder is by default a subfolder of the GeneWeb distribution named bases that contains all your personnal data: the genealogical databases themselves with their notes, images, authentification files, template personalisation, etc. It can be moved or renamed according to your preferences.

In each of its etc, images, lang and src folders, subfolders carrying the name of the base mybase hold the specific data for each base.

  • directory distribution: details all the other files and subfolders out of bases folder, like the programs or template files.
    • directory bases: The folder containing the GeneWeb databases
      • directory mybase.gwb: folder of the genealogical database called mybase
      • file mybase.gwf: associated .gwf configuration/parameters file
      • file mybase-f.auth example of password file for friends (friend_passwd_file=)
      • file mybase-w.auth example of password file for wizards (wizard_passwd_file=)
      • directory mybase2.gwb: folder of a second genealogical database mybase2
      • file mybase2.gwf/auth configuration files associated to mybase2, etc.
      • directory cnt: holding the robot file, locks, and memorising the access counts for each base
        • file actlog: file temporary storing the tokens needed for login in CGI mode
        • file robot list IP address of robots
        • file mybase.txt access counts for mybase
        • file mybase.lck lock file for mybase
      • directory etc: used in priority over the generic gw/etc files (see templates)
        • directory mybase: template folders for mybase
          • directory modules
            • file module_xx.txt
          • file header.txt base specific header file
          • file trl.txt base specific trailer file
        • directory mybase2: idem
      • directory images
        • directory mybase: portraits images for mybase
          • file first_name.occurence.last_name.jpg
          • file other_first_name.occurence.last_name.jpg
        • directory mybase2: idem
      • directory lang: containing some base specific language related template text files (lexicon for instance)
        • directory mybase
        • directory mybase2
      • directory src
        • directory mybase
          • directory images: images called with m=IMH
            • file myimage.jpg
          • file file1.txt: text file called with m=SRC
        • directory mybase2: idem
    • directory gw
    • […] gwd/gwsetup launch scripts, README, etc.

Bases folder in GeneWeb 7

GeneWeb 7 simplifies the archival of databases regrouping all the files needed for a single database under the same folder. With this configuration, it becomes far simpler to use archival tools such as tar, zip or rar to store a single database folder in an archive (see save for details and comments).

  • directory distribution
    • directory bases: The folder containing the GeneWeb databases
      • directory mybase.gwb: folder of the genealogical database called mybase
        • directory cnt: holding access counts for the base and several access logs
          • file mybase_cnt.txt: access counts (and its .lck companion)
          • file mybase_{w/f/u}.txt: access logs for wizards, friends and updates
        • directory documents: image/txt/pdf/html files, subdirectories allowed
          • directory portraits: portraits images called with m=IM&i=index (no sub-dirs here!)
            • file first_name.occurence.last_name.jpg
            • file other_first_name.occurence.last_name.jpg
            • directory saved: saved portraits called with m=IMS&i=index
          • directory images: other images associated with a person shown in a carrousel
            • directory first_name.occurence.last_name: other images associated with a person
              • file otherimage.jpg: images called with m=IM&i=index&s=otherimage.jpg
              • file otherimage.txt: comment associated with otherimage
              • directory saved: saved images and comments called with m=IMS&i=index&s=otherimage.jpg
          • file myimage.jpg: images called with m=DOC&s=myimage.jpg or m=IM&s=myimage.jpg
          • file mytext.txt: text files called with m=DOC&s=mytext.txt or m=SRC&v=mytext
          • file mydoc.pdf: PDF files called with m=DOC&s=mydoc.pdf
          • file mypage.html: HTML pages called with m=DOC&s=mypage.html
          • directory src:
            • file mydoc.txt: txt files called with m=DOC&s=mydoc.txt or m=SRC&v=mydoc
            • directory lg: language specific txt files
        • directory etc: configurations files and personnalized variants of template files, used in priority over the generic gw/etc files (see templates)
          • directory modules: personnalized variants of modules files
            • file module_xx.txt
          • directory templatex: personnal variant of templatex files
          • file mybase.conf (mybase-config.txt?): configuration/parameters file (old .gwf)
          • file mybase-f.auth (mybase-friend-auth.txt?): example of password file for friends (friend_passwd_file= in mybase.conf)
          • file mybase-w.auth (mybase-wizard-auth.txt?): example of password file for wizards (wizard_passwd_file= in mybase.conf)
          • file particles.txt (mybase-particles.txt?): particles list for this base.
          • file hed.txt and trl.txt: base specific header/trailer files
        • directory lang: local complements to the language lexicon
        • directory history: folder with all diff files (this folder may be located elsewhere according to history_path= in mybase.conf)
          • directory a
          • directory b
          • directory
          • file history.txt: history of modifications
        • directory notes: folder with all the notes and linked pages
          • file notes.txt: (reserved name) main notes for the base, displayed in the welcome page
          • file linked_page.txt: other "linked_page" obtained with [[[linked_page/text]]]
        • file… base, base.acc, cache_info […] names.inx, notes_links, patches (all internal files and folders of the database)
      • directory mybase2.gwb: folder of a second genealogical database mybase2
        • […] the organisation is the same for each database see description for mybase.gwb folder above
      • directory cnt: admin files
        • file actlog: file temporary storing the tokens needed for login in CGI mode
        • file gwd.lck: lock file
        • file robot: list IP addresses of detected robots
      • file comm.log (log.txt?): execution log of the last base creation with a gwc command
      • file perso_lexicon.txt: UTF-8 personnal complementary lexicon (loaded with -add_lexicon at gwd start)
      • file tags.txt: alternate list of authorized HTML tags (loaded with -allowed_tags at gwd start)
    • directory gw
    • file… gwd/gwsetup launch scripts, CHANGES.txt, README, etc.

Note that with this configuration, all personnalization happens in files stored in the base folder. A new release of GeneWeb may be installed safely by copying the new gw folder and possibly new copies of gwd/gwsetup launch scripts, CHANGES.txt, README, etc (the last two lines of the tree above).