Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora Directory (http://www.linux-archive.org/fedora-directory/)
-   -   Backup Directory Server by db2bak.pl script (http://www.linux-archive.org/fedora-directory/694945-backup-directory-server-db2bak-pl-script.html)

Fosiul Alam 08-17-2012 10:39 AM

Backup Directory Server by db2bak.pl script
 
Hi

I know you can take a backup of full directory server by using
db2bak.pl
but dont understand what will be syntax
i checked the helped file but no luck
So when i do this
/var/lib/dirsrv/slapd-ldap-2/bak/ldap-2-2012_8_3_10_13_5
ldapmodify: started Fri Aug 3 10:13:05 2012
ldap_init( ldap-2.fosiul.lan, 389 )
add objectclass:
top
extensibleObject
add cn:
backup_2012_8_3_10_13_5
add nsArchiveDir:
/var/lib/dirsrv/slapd-ldap-2/bak/ldap-2-2012_8_3_10_13_5
add nsDatabaseType:
ldbm database
adding new entry cn=backup_2012_8_3_10_13_5, cn=backup, cn=tasks, cn=config

- Ignored:
modify complete


it does not look like its doing anything!!

can any one please help me .

Fosiul
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users

Grzegorz Dwornicki 08-17-2012 10:49 AM

Backup Directory Server by db2bak.pl script
 
https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Directory_Server/9.0/html/Configuration_Command_and_File_Reference/Perl_Scripts.html#Perl_Scripts-db2bak.pl_Create_backup_of_database



This describes this script in human readable format. Best souce of DS knowledge im my opinion is red hat docs.


If you provide information on what you need to backup, then I'm sure someone will provide syntax for your case.


Greg.


Send from htc desire z

17-08-2012 12:39, "Fosiul Alam" <fosiul@gmail.com> napisał(a):
Hi



*I know you can take a backup of full directory server by using

* * db2bak.pl

* * but dont understand what will be syntax

* * i checked the helped file but no luck

* * So when i do this

* * /var/lib/dirsrv/slapd-ldap-2/bak/ldap-2-2012_8_3_10_13_5

* * ldapmodify: started Fri Aug *3 10:13:05 2012

* * ldap_init( ldap-2.fosiul.lan, 389 )

* * add objectclass:

* * * * top

* * * * extensibleObject

* * add cn:

* * * * backup_2012_8_3_10_13_5

* * add nsArchiveDir:

* * * * /var/lib/dirsrv/slapd-ldap-2/bak/ldap-2-2012_8_3_10_13_5

* * add nsDatabaseType:

* * * * ldbm database

* * adding new entry cn=backup_2012_8_3_10_13_5, cn=backup, cn=tasks, cn=config



- Ignored:

* * modify complete





* * it does not look like its doing anything!!



* * can any one please help me .



Fosiul

--

389 users mailing list

389-users@lists.fedoraproject.org

https://admin.fedoraproject.org/mailman/listinfo/389-users
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users

Fosiul Alam 08-17-2012 11:12 AM

Backup Directory Server by db2bak.pl script
 
Hi thanks

I have done that before .. here is command

perl db2bak.pl -D "cn=Directory Manager" -w 'testtest' -a /root/bak/
Back up directory: /root/bak/
adding new entry cn=backup_2012_8_3_10_48_13, cn=backup, cn=tasks, cn=config

so how if i go to /root/bac

there is not any file in there .

so where is the backup ??



On Fri, Aug 17, 2012 at 11:49 AM, Grzegorz Dwornicki <gd1100@gmail.com> wrote:
> https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Directory_Server/9.0/html/Configuration_Command_and_File_Reference/Perl_Scripts.html#Perl_Scripts-db2bak.pl_Create_backup_of_database
>
> This describes this script in human readable format. Best souce of DS
> knowledge im my opinion is red hat docs.
>
> If you provide information on what you need to backup, then I'm sure someone
> will provide syntax for your case.
>
> Greg.
>
> Send from htc desire z
>
> 17-08-2012 12:39, "Fosiul Alam" <fosiul@gmail.com> napisał(a):
>>
>> Hi
>>
>> I know you can take a backup of full directory server by using
>> db2bak.pl
>> but dont understand what will be syntax
>> i checked the helped file but no luck
>> So when i do this
>> /var/lib/dirsrv/slapd-ldap-2/bak/ldap-2-2012_8_3_10_13_5
>> ldapmodify: started Fri Aug 3 10:13:05 2012
>> ldap_init( ldap-2.fosiul.lan, 389 )
>> add objectclass:
>> top
>> extensibleObject
>> add cn:
>> backup_2012_8_3_10_13_5
>> add nsArchiveDir:
>> /var/lib/dirsrv/slapd-ldap-2/bak/ldap-2-2012_8_3_10_13_5
>> add nsDatabaseType:
>> ldbm database
>> adding new entry cn=backup_2012_8_3_10_13_5, cn=backup, cn=tasks,
>> cn=config
>>
>> - Ignored:
>> modify complete
>>
>>
>> it does not look like its doing anything!!
>>
>> can any one please help me .
>>
>> Fosiul
>> --
>> 389 users mailing list
>> 389-users@lists.fedoraproject.org
>> https://admin.fedoraproject.org/mailman/listinfo/389-users
>
>
> --
> 389 users mailing list
> 389-users@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/389-users



--
Regards
Fosiul Alam
07877100621
http://www.fosiul.co.uk
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users���
{���^���a��������� �n��]*Z�(^rG�U��ҥ���Ƭ�)��:Ӫ'y� %{�6�֫�ם�*y��t�jb޽���J* ���

Grzegorz Dwornicki 08-17-2012 11:36 AM

Backup Directory Server by db2bak.pl script
 
In docs redhat writes that this script creates a dynamic backup task. This task will make the backup. In admin guide of DS they use this command as an example:


https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Directory_Server/9.0/html/Administration_Guide/Populating_Directory_Databases-Backing_Up_and_Restoring_Data.html#Backing_Up_and_ Restoring_Data-Backing_Up_All_Databases



Go down to section of using commandline to create full backup. In short they go to slapd-instance directory and run script there. Without -a parameter what I find interesting because they only give script one parameter - the name of backup file.




Send from htc desire z

17-08-2012 13:12, "Fosiul Alam" <fosiul@gmail.com> napisał(a):
Hi thanks



I have done that before .. here is command



*perl db2bak.pl -D "cn=Directory Manager" -w 'testtest' *-a /root/bak/

Back up directory: /root/bak/

adding new entry cn=backup_2012_8_3_10_48_13, cn=backup, cn=tasks, cn=config



so how if i go to /root/bac



there is not any file in there .



so where is the backup ??







On Fri, Aug 17, 2012 at 11:49 AM, Grzegorz Dwornicki <gd1100@gmail.com> wrote:

> https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Directory_Server/9.0/html/Configuration_Command_and_File_Reference/Perl_Scripts.html#Perl_Scripts-db2bak.pl_Create_backup_of_database


>

> This describes this script in human readable format. Best souce of DS

> knowledge im my opinion is red hat docs.

>

> If you provide information on what you need to backup, then I'm sure someone

> will provide syntax for your case.

>

> Greg.

>

> Send from htc desire z

>

> 17-08-2012 12:39, "Fosiul Alam" <fosiul@gmail.com> napisał(a):

>>

>> Hi

>>

>> *I know you can take a backup of full directory server by using

>> * * db2bak.pl

>> * * but dont understand what will be syntax

>> * * i checked the helped file but no luck

>> * * So when i do this

>> * * /var/lib/dirsrv/slapd-ldap-2/bak/ldap-2-2012_8_3_10_13_5

>> * * ldapmodify: started Fri Aug *3 10:13:05 2012

>> * * ldap_init( ldap-2.fosiul.lan, 389 )

>> * * add objectclass:

>> * * * * top

>> * * * * extensibleObject

>> * * add cn:

>> * * * * backup_2012_8_3_10_13_5

>> * * add nsArchiveDir:

>> * * * * /var/lib/dirsrv/slapd-ldap-2/bak/ldap-2-2012_8_3_10_13_5

>> * * add nsDatabaseType:

>> * * * * ldbm database

>> * * adding new entry cn=backup_2012_8_3_10_13_5, cn=backup, cn=tasks,

>> cn=config

>>

>> - Ignored:

>> * * modify complete

>>

>>

>> * * it does not look like its doing anything!!

>>

>> * * can any one please help me .

>>

>> Fosiul

>> --

>> 389 users mailing list

>> 389-users@lists.fedoraproject.org

>> https://admin.fedoraproject.org/mailman/listinfo/389-users

>

>

> --

> 389 users mailing list

> 389-users@lists.fedoraproject.org

> https://admin.fedoraproject.org/mailman/listinfo/389-users







--

Regards

Fosiul Alam

07877100621

http://www.fosiul.co.uk

--

389 users mailing list

389-users@lists.fedoraproject.org

https://admin.fedoraproject.org/mailman/listinfo/389-users
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users

Rich Megginson 08-17-2012 02:34 PM

Backup Directory Server by db2bak.pl script
 
On 08/17/2012 04:39 AM, Fosiul Alam wrote:

Hi

I know you can take a backup of full directory server by using
db2bak.pl
but dont understand what will be syntax
i checked the helped file but no luck
So when i do this
/var/lib/dirsrv/slapd-ldap-2/bak/ldap-2-2012_8_3_10_13_5
ldapmodify: started Fri Aug 3 10:13:05 2012
ldap_init( ldap-2.fosiul.lan, 389 )
add objectclass:
top
extensibleObject
add cn:
backup_2012_8_3_10_13_5
add nsArchiveDir:
/var/lib/dirsrv/slapd-ldap-2/bak/ldap-2-2012_8_3_10_13_5
add nsDatabaseType:
ldbm database
adding new entry cn=backup_2012_8_3_10_13_5, cn=backup, cn=tasks, cn=config

- Ignored:
modify complete


it does not look like its doing anything!!

can any one please help me .


You can monitor the process of the backup task by looking at the errors
log file.




Fosiul
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users


--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users


All times are GMT. The time now is 09:39 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.