Difference between revisions of "Dump ldap-master naar Subversion"
Line 1: | Line 1: | ||
+ | = = |
||
+ | <pre> |
||
+ | #!/bin/bash |
||
+ | export script_name="dump-samba-ldap-master" |
||
+ | . /usr/local/bin/logging.sh ${script_name} |
||
+ | |||
+ | /etc/init.d/slapd stop |
||
+ | |||
+ | /usr/sbin/slapcat > /var/lib/slapd/cirquest.nl/master.<domein>.nl.ldif |
||
+ | |||
+ | /etc/init.d/slapd start |
||
+ | |||
+ | datum=`date +%Y%m%d` |
||
+ | |||
+ | cd /var/lib/slapd/cirquest.nl/ |
||
+ | |||
+ | /usr/bin/svn commit -m "master.<domein>.nl $datum" |
||
+ | |||
+ | cd - |
||
+ | </pre> |
||
<hr/> |
<hr/> |
||
Terug naar: [[Uwork Support Infrastructuur]] |
Terug naar: [[Uwork Support Infrastructuur]] |
Revision as of 19:57, 9 February 2010
#!/bin/bash export script_name="dump-samba-ldap-master" . /usr/local/bin/logging.sh ${script_name} /etc/init.d/slapd stop /usr/sbin/slapcat > /var/lib/slapd/cirquest.nl/master.<domein>.nl.ldif /etc/init.d/slapd start datum=`date +%Y%m%d` cd /var/lib/slapd/cirquest.nl/ /usr/bin/svn commit -m "master.<domein>.nl $datum" cd -
Terug naar: Uwork Support Infrastructuur