| 123456789101112131415161718192021222324 |
- #!/bin/sh
- prefix="{{DS-ROOT}}"
- if [ "$prefix" = "/" ] ; then
- prefix=""
- fi
- LD_LIBRARY_PATH=$prefix/{{SERVER-DIR}}:$prefix@nss_libdir@:$prefix@libdir@:$prefix@pcre_libdir@
- if [ -n "$prefix" ] ; then
- LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:@nss_libdir@"
- fi
- export LD_LIBRARY_PATH
- SHLIB_PATH=$LD_LIBRARY_PATH
- export SHLIB_PATH
- cd {{SERVERBIN-DIR}}
- if [ "$#" -eq 1 ]
- then
- bak_dir=$1
- else
- bak_dir={{BAK-DIR}}/{{SERV-ID}}-`date +%Y_%m_%d_%H_%M_%S`
- fi
- echo "Back up directory: $bak_dir"
- ./ns-slapd db2archive -D {{CONFIG-DIR}} -a $bak_dir
|