Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   Logbook aliases, posted by Yoshio Imai on Tue Dec 13 10:51:13 2005 
    icon2.gif   Re: Logbook aliases, posted by Stefan Ritt on Tue Dec 13 20:34:39 2005 
       icon3.gif   Re: Logbook aliases, posted by Yoshio Imai on Wed Dec 14 11:40:54 2005 
          icon2.gif   Re: Logbook aliases, posted by Stefan Ritt on Wed Dec 14 11:48:37 2005 
             icon2.gif   Re: Logbook aliases, posted by Yoshio Imai on Wed Dec 14 15:45:29 2005 
Message ID: 1547     Entry time: Tue Dec 13 20:34:39 2005     In reply to: 1546     Reply to this: 1548
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Request  OS: Linux  ELOG Version: 2.6.0beta5 
Subject: Re: Logbook aliases 

Yoshio Imai wrote:
Is it possible to implement aliases for logbooks? We would like to use a new logbook for every beamtime, but many services need to read/write to the respective current beamtime logbook. It would therefore be nice to have logbook "aliases", so that e.g. a "virtual" logbook beam could be defined to be an alias/redirection to the current beamtime logbook, and all services could refer to that one instead of having to be reconfigured for each beamtime.
This could also help to make sure everyone on shift writes the entries to the correct logbook ... Wink


You can do that already with the current version: At the end of a beamtime, create a new logbook, take the current logbook as a template, to make sure it has the same settings. Then move all entries from the current logbook to the new beamtime logbook, either with

  • the "move to" command from the menu (which you first have to enable. While this works fine for individual entries, I never tried this with a whole logbook (click on "all", then "select all", then move to). So better try this first on a backup
  • moving the logbook entries on the file level. Go to the elog root, then enter "mv logbooks/<current>/* logbooks/<beamtime>/ where <current> is your current (online) logbook and <beamtime> is the new one you just created. You have to restart elogd so that it realizes the moved files

After that, your current logbook is empty again and ready for the new beamtime Big grin .
ELOG V3.1.5-fe60aaf