Bug 233027
Summary: | make db2bak.pl & db2ldif.pl user more user-friendly | ||
---|---|---|---|
Product: | [Retired] 389 | Reporter: | Noriko Hosoi <nhosoi> |
Component: | Command Line Utilities | Assignee: | Noriko Hosoi <nhosoi> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Viktor Ashirov <vashirov> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 1.0.4 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-12-07 16:39:25 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 152373, 189903, 240316, 427409 | ||
Attachments: |
Description
Noriko Hosoi
2007-03-19 22:34:46 UTC
Created attachment 150442 [details]
cvs diff template-db2bak.pl.in template-db2ldif.pl.in
Files:
ldap/admin/src/scripts/template-db2bak.pl.in
ldap/admin/src/scripts/template-db2ldif.pl.in
Changes:
db2bak.pl: print out the back up directory
Back up directory: ...
db2ldif.pl: print out the exported ldif file name
Exported ldif file: ...
The ldif file name format: <server id>-[<backend>}<first suffix
value>]+-<date_time>.ldif
We may want to mention this ldif file name change in the doc...? Created attachment 150443 [details]
cvs commit message
Reviewed by Rich (Thank you!)
Checked in into HEAD.
Created attachment 150447 [details]
cvs diff template-db2bak.in, template-db2bak.pl.in, template-db2ldif.in
Files:
ldap/admin/src/scripts/template-db2bak.in
ldap/admin/src/scripts/template-db2bak.pl.in
ldap/admin/src/scripts/template-db2ldif.in
Changes:
1) Found db2bak, db2bak.pl, and db2ldif do not backup/export into the dir/file
which do not start with the <server-id> string. It could cause the difficulty
to find out which server instance does the backup/exported file belongs to.
Also, to make them consistent with db2ldif.pl, added the "server id" string to
the back up dir name/exported ldif file name.
2) db2ldif[.pl] takes -M option. With the -M option, the server adds backend
name to the ldif file name. To reduce the redundancy, stopped adding the
backend name if -M is set.
3) made the ldif file name db2ldif generates consistent with the one db2ldif.pl
generates.
Created attachment 150451 [details]
cvs commit message
Thanks again for reviewing the changes, Rich.
Checked in into HEAD.
Created attachment 150717 [details]
cvs diff template-db2ldif.in
File: ldap/admin/src/scripts/template-db2ldif.in
Problem description: the command line fails to generate an output file name
when an empty suffix is passed as follows:
db2ldif -s ""
Changes: check if the suffix is empty or not. If it is empty, generates an
output file name without it.
Created attachment 150813 [details]
cvs diff template-db2ldif.in and its commit message
Reviewed by Rich (Thank you!)
Checked in a slightly revised version into HEAD (removed redundant variable
"nobe"...)
There's one more change needed for 'db2ldif -s ""' work... Index: template-db2ldif.in =================================================================== RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/template-db2ldif.in,v retrieving revision 1.7 diff -t -w -U4 -r1.7 template-db2ldif.in --- template-db2ldif.in 24 Mar 2007 00:51:11 -0000 1.7 +++ template-db2ldif.in 29 Mar 2007 21:34:34 -0000 @@ -43,9 +43,11 @@ fi elif [ "$1" = "-M" ]; then be="" fi + if [ "$1" != "" ]; then shift + fi done if [ "$be" = "" ]; then echo {{LDIF-DIR}}/{{SERV-ID}}-`date +%Y_%m_%d_%H%M%S`.ldif Created attachment 151242 [details]
cvs commit message
Reviewed by Nathan (Thank you!)
Checked in into HEAD.
|