ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
67452
|
Thu Feb 21 23:23:19 2013 |
| Mark Bergman | mark.bergman@uphs.upenn.edu | Question | Linux | 2.92 | any way to undelete entries? |
Is there any way within eLog to undelete entries? |
67453
|
Fri Feb 22 08:19:27 2013 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Linux | 2.92 | Re: any way to undelete entries? |
Mark Bergman wrote: |
Is there any way within eLog to undelete entries?
|
No. |
67454
|
Fri Feb 22 10:58:18 2013 |
| Andreas Luedeke | andreas.luedeke@psi.ch | Question | Linux | 2.92 | Re: any way to undelete entries? |
Mark Bergman wrote: |
Is there any way within eLog to undelete entries?
|
I wrote to scripts to backup the logbook files:
- elog_backup_daily creates a tar file of all new entries of the last 25 hours and keeps these backups for 90 days
- elog_backup_hourly creates a tar file of the entries of the last 65 minutes and keeks these backups for one week
- exclude-logbooks specifies which files not to backup
This allows you at least to recover deleted entries by hand as an administrator.
  ⇄
Detect language » English
 ⇄
Detect language » English
⇄
Detect language » English
|
Attachment 1: elog_backup_daily
|
#!/bin/sh
# source file directory
srcd=/usr/local/elog/
# backup all files newer than 25 hours
date=$(date -d "-25hours" "+%Y%m%d %H:%M")
# backup file directory
tard=/logbooks_backup
# backup tar file name
tarf=$tard/$(date +%Y%m%d_%a.tar)
# do not backup files that match patterns in this file
excf=/usr/local/elog/utilities/exclude-logbooks
# create backup
cd $srcd
tar --ignore-case -X $excf --newer "$date" -cf $tarf . logbooks/*
# copy passwd.txt
if [ "$(date +%u)" -eq 1 ]
then
passwd=$tard/passwd_$(date +%Y%m%d_%a.txt)
cp $srcd/passwd.txt $passwd
gzip -9 $passwd
fi
# delete all backups older than 90 days
find $tard -mtime +90 -name "*_???.tar" -exec rm -f {} +
find $tard -mtime +90 -name "passwd_*_???.txt.gz" -exec rm -f {} +
|
Attachment 2: elog_backup_hourly
|
#!/bin/sh
# source file directory
srcd=/usr/local/elog/
# backup all files newer than 25 hours
date=$(date -d "-65minutes" "+%Y%m%d %H:%M")
# backup file directory
tard=/logbooks_backup
# backup tar file name
tarf=$tard/$(date +%a%H%M.tar)
rm -f $tarf
# do not backup files that match patterns in this file
excf=/usr/local/elog/utilities/exclude-logbooks
# create backup
cd $srcd
tar --ignore-case -X $excf --newer "$date" -cf $tarf . logbooks/*
|
Attachment 3: exclude-logbooks
|
*.png.png
*.gif.png
*.jpg.png
*.pdf.png
oldLogbooks/*
logbooks/elog.log
passwd.txt
ssl/*
logbooks/Backup/*
logbooks/old/*
|
67406
|
Tue Dec 18 23:03:57 2012 |
| Hal Proctor | hproctor2@gmail.com | Question | Windows | 2.91 | Main Logbook screen with Multi Grouped Logbooks with unique user permissions |
I have a couple questions on how to configure multiple logbooks with groups.
- How can I have a user have permissions to a single logbook that is within a group and jump to it using tabs?
- Launching from main/home screen may work, but using tabs from one group to another where the single workbook resides in a group of others, it errors out or asks for login to a logbook you may not have rights to.(always the first book in the group)
- How can I force a main login to direct you to the MAIN logbook selection screen?
Example: (use images for reference) A user has permissions to "Punch" and "Maintenance". Maintenance is a single logbook and Punch is within the group "Dry Room".
While the user is in Maintenance and without having to jump back to the MAIN selection screen, how can the user select the Tab "Dry Room" as seen in image, without throwing up or redirecting you? |
Attachment 1: Main.jpg
|
|
Attachment 2: Tabs.jpg
|
|
67423
|
Thu Jan 10 10:52:11 2013 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Windows | 2.91 | Re: Main Logbook screen with Multi Grouped Logbooks with unique user permissions |
Hal Proctor wrote: |
I have a couple questions on how to configure multiple logbooks with groups.
- How can I have a user have permissions to a single logbook that is within a group and jump to it using tabs?
- Launching from main/home screen may work, but using tabs from one group to another where the single workbook resides in a group of others, it errors out or asks for login to a logbook you may not have rights to.(always the first book in the group)
- How can I force a main login to direct you to the MAIN logbook selection screen?
Example: (use images for reference) A user has permissions to "Punch" and "Maintenance". Maintenance is a single logbook and Punch is within the group "Dry Room".
While the user is in Maintenance and without having to jump back to the MAIN selection screen, how can the user select the Tab "Dry Room" as seen in image, without throwing up or redirecting you?
|
There are several options:
- Use a bookmark in your browser. Put a link directly "Punch" and "Maintenance" in the link list of your browser and you can directly jump to that logbook. Different users can define different bookmarks in their browsers.
- Change the order of the logbooks in the group, like put "Punch" to be the first one in your group. But if you have different users with different permissions this will of course not work for all.
- Give up groups and just keep a linear list of logbooks.
2. is not possible. Even if you use "Protect selection page", you will always be redirected to the first logbook after logging in. Maybe I should change that.
|
67029
|
Mon Mar 21 02:40:31 2011 |
| John Rouillard | rouilj+elog@cs.umb.edu | Request | Windows | 2.90 | http://midas.psi.ch/elog/download/windows/ doesn't have the latest 2.90 release |
It looks like the newest windows release of elog at
http://midas.psi.ch/elog/download/windows/ is 2.81.
elog281-1.exe 23-Dec-2010 11:42 3.1M
elog-latest.exe 23-Dec-2010 11:42 3.1M
Can you post the 2.90 release.
Thanks.
-- rouilj |
67030
|
Mon Mar 21 08:53:48 2011 |
| Stefan Ritt | stefan.ritt@psi.ch | Request | Windows | 2.90 | Re: http://midas.psi.ch/elog/download/windows/ doesn't have the latest 2.90 release |
> It looks like the newest windows release of elog at
> http://midas.psi.ch/elog/download/windows/ is 2.81.
>
> elog281-1.exe 23-Dec-2010 11:42 3.1M
> elog-latest.exe 23-Dec-2010 11:42 3.1M
>
> Can you post the 2.90 release.
>
> Thanks.
>
> -- rouilj
Yepp, done. I somehow overlooked it.
- Stefan |
67137
|
Fri Oct 21 01:09:54 2011 |
| Mark Bergman | mark.bergman@uphs.upenn.edu | Question | Linux | 2.90 | error message "Command Config is not allowed" after registering |
After registering, elog displays a page with the message:
Error: Command "Config" is not allowed for user ""
However, the registration is successful. This causes confusion, and results in users registering multiple times.
In the elogd.conf file, I have the directive:
Allow Config = bergman
Any suggestions? |