Re: [389-users] Backup Directory Server by db2bak.pl script

2013-05-13 Thread Vincent Gerris
Hi Rich, Thank you for the quick reply. Great tip, selinux is indeed enabled. We currently run Red Hat Directory Server 9.0 on Red Hat Enterprise Linux 6 64 bit. This is what selinux suggests (/var/log/messages): Do # semanage fcontext -a -t FILE_TYPE '/backup_cds' where FILE_TYPE is one of the fo

Re: [389-users] Backup Directory Server by db2bak.pl script

2013-05-13 Thread Rich Megginson
On 05/13/2013 09:09 AM, Vincent Gerris wrote: hi, I noticed this entry when trying to use the db2bak.pl script. I found out that the -a option only works when for example the /var/lib/dirsrv/slapd-server/bak or a subdir is used (effectively) the same dir as without the -a option. I was using a r

Re: [389-users] Backup Directory Server by db2bak.pl script

2013-05-13 Thread Vincent Gerris
hi, I noticed this entry when trying to use the db2bak.pl script. I found out that the -a option only works when for example the /var/lib/dirsrv/slapd-server/bak or a subdir is used (effectively) the same dir as without the -a option. I was using a root dir, which I also modded with nobody:nobody

Re: [389-users] Backup Directory Server by db2bak.pl script

2012-08-17 Thread Grzegorz Dwornicki
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-Backi

Re: [389-users] Backup Directory Server by db2bak.pl script

2012-08-17 Thread Fosiul Alam
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

Re: [389-users] Backup Directory Server by db2bak.pl script

2012-08-17 Thread Grzegorz Dwornicki
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

[389-users] Backup Directory Server by db2bak.pl script

2012-08-17 Thread Fosiul Alam
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