BAK2DB(8) System Manager's Manual BAK2DB(8)NAME
bak2db - Directory Server script for restoring a backup
SYNOPSIS
bak2db archivedir [-Z serverID] [-n backendname] [-q] | [-h]
DESCRIPTION
Restores the database from a archived backup. The Directory Server must be stopped prior to running this script.
OPTIONS
A summary of options is included below:
archivedir
The directory of the archived database.
-Z Server Identifier
The server ID of the Directory Server instance. If there is only one instance on the system, this option can be skipped.
-n Backend Name
The name of the LDBM database to restore. Example: userRoot
-q
Quiet mode. Reduces output of task.
-h
Display the usage.
EXAMPLE
bak2db /LDAP/backups/20130305/ -Z instance1 -n userRoot
bak2db /LDAP/backups/20130305/ -n example
DIAGNOSTICS
Exit status is zero if no errors occur. Errors result in a non-zero exit status and a diagnostic message being written to standard error.
AUTHOR
bak2db was written by the 389 Project.
REPORTING BUGS
Report bugs to http://bugzilla.redhat.com.
COPYRIGHT
Copyright (C) 2013 Red Hat, Inc.
Mar 5, 2013 BAK2DB(8)
Check Out this Related Man Page
BAK2DB.PL(8) System Manager's Manual BAK2DB.PL(8)NAME
bak2db.pl - Directory Server perl script for restoring a backup
SYNOPSIS
bak2db.pl -a archivedir [-Z serverID] [-D rootdn] { -w password | -w - | -j filename } [-t dbtype] [-n backendname] [-P protocol] [-v]
[-h]
DESCRIPTION
Restores a database from a backup. The Directory Server must be started prior to running this script.
OPTIONS
A summary of options is included below:
-a archivedir
The directory of the archived database.
-Z Server Identifier
The server ID of the Directory Server instance. If there is only one instance on the system, this option can be skipped.
-D Root DN
The Directory Manager DN, or root DN. If not specified, the script will search the server instance configuration for the value.
-w password
The rootdn password.
-w -
Prompt for the rootdn password.
-j password filename
The name of the file that contains the root DN password.
-t database type
The backend database type (default: ldbm database).
-n Backend Name
The name of the LDBM database to restore. Example: userRoot
-P Protocol
The connection protocol to connect to the Directory Server. Protocols are STARTTLS, LDAPS, LDAPI, and LDAP. If this option is
skipped, the most secure protocol that is available is used. For LDAPI, AUTOBIND is also available for the root user.
-v
Display verbose ouput
-h
Display usage
EXAMPLE
bak2db.pl -a /LDAP/backups/20130305/ -D 'cn=directory manager' -w password -n userRoot -P LDAPS
Note: security must be enabled to use protocol LDAPS. If LDAPS is not available it will default to next strongest/available proto-
col automatically.
bak2db.pl -a /LDAP/backups/20130305/ -Z instance2 -w password -n example -P LDAPI
DIAGNOSTICS
Exit status is zero if no errors occur. Errors result in a non-zero exit status and a diagnostic message being written to standard error.
AUTHOR
bak2db.pl was written by the 389 Project.
REPORTING BUGS
Report bugs to http://bugzilla.redhat.com.
COPYRIGHT
Copyright (C) 2013 Red Hat, Inc.
Mar 5, 2013 BAK2DB.PL(8)
Can anyone please tell me how safe is the following backup script?
Does it really backing up the WHOLE system or just part of it?
I do that with the system running an oracle database.
Will I be able to restore the system in case of a fault?
<pre>
Here is the output of 'df -k'
... (11 Replies)
Hi All,
I have written a script called findwho.sh
findwho.sh in Development Server
========
who -M>x
I want to copy the file findwho.sh
into Production Server and
run this script on it then output file x copy
back to the Development Server
1) Every time ftp findwho.sh to... (4 Replies)
Hi,
I am currently working on a perl script for my collegues that produces an output like this :
Directory /orapkg/ora002/oradata/aora02 has size 134 Mb
Directory /orapkg/ora002/oradata has size 20560 Mb
Directory /orapkg/ora002/oradata/aora01 has size 2038 Mb
Now I would like to have... (6 Replies)
I have written a script to perfrom a cold backup on an oracle database. The script is failing everytime. Can anyone tell me what (stupid) error I am making.
The output from the uname command follows
Linux rayora 2.2.14-6.1.1smp #1 SMP Thu Apr 13 19:55:55 EDT 2000 i686 unknown
The error... (8 Replies)
Hello,
I would like to list out all CLIENTINVOICE*.archived (but not _9_4_bfmh.archived or other such as _x_x_xxx.archived). how can I do it?
/appl/appl/archive/client/CACHE/CLIENTINVOICE05020_9_4_bfmh.archived
/appl/appl/archive/client/CACHE/CLIENTINVOICE05021.archived... (5 Replies)
Can anyone help with an HP Ignite problem please !!
We currently have 2 servers running HP-UX B.11.00 connected together and using a high availability cluster (serviceguard) running one package.
Each of the servers have 2 mirrored local disks. (also installed HP OpenviewDM B.05.03, Oracle 8.0.5,... (7 Replies)
Running Red Hat Enterprise Linux Server release 5.1 (Tikanga) 2.6.18-53.el5
Trying to do an 'ls' of a sub-directory and the prompt never returns. Same problem running a find command as well.
I have done an fsck on the file system (no problems) and can view other sub-directories on this... (5 Replies)
Hi Guys,
I wonder if someone has come accross an issue where basically our db2 backups are running very slow and one thing that we can see from the TSM report below is that the number of comm_waits has increased dramatically. We asked the question to IBM about what comm_waits would means but... (4 Replies)
Hello Team,
I have script which gives below output.
Server clustServer11 is in a STARTED state
Server clustServer12 is in a STOPPED state
Server clustServer21 is in a STOPPED state
I would like to prepare script which will grep stop word from the above output and send an email alert. (5 Replies)
Hi,
In order to have a sand box machine that I could use to test some system changes before going to production state, I'd like to duplicate a working system to a virtual one. Ideally, I'd like to manage to do it this way :
- Make a full system backup excluding the user file system (this... (7 Replies)
I want to delete archivelog files that has been archived and applied from primary database
to standby database. This piece of script is working in Linux server. However, I copy it to
Unix server with tiny modification. It won't work and generate the error message. I have checked
code carefullt... (8 Replies)
I need a little clarification in understanding why there would be a need for a benchmark file when used with a backup script. Logically thinking would tell me that the backups itself(backuptest.tgz) would have the time created and etc. So what would be the purpose of such a file:
touch... (6 Replies)
Hi All,
I have been given the task of integrating Linux (RedHat, Ubuntu, CentOS and Mac OSX) with a Windows Server 2012 A.D.
if anyone has done this before help would be very much appreciated, I have been looking at using either Samba with Win-bind or SSSD, if anyone has tested this please... (9 Replies)
Dear All ,
We have a linux Server where we have installed all our Softwares and applications.
Now we want to clone this Server to another server or copy the image of it and put it in the another server.So that all the softwares and apps appear in the new server also , rather than re... (7 Replies)