Changeset 829 for n4d-ldap/trunk/fuentes/install/usr/sbin/llx-slapd-backup
- Timestamp:
- Mar 10, 2016, 4:03:58 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
n4d-ldap/trunk/fuentes/install/usr/sbin/llx-slapd-backup
r149 r829 29 29 dump) 30 30 31 / etc/init.d/slapdstop31 /usr/sbin/slapd-daemon-starter stop 32 32 slapcat -n 0 > ${BACKUPDIR}/config.ldif 33 33 slapcat -n 1 > ${BACKUPDIR}/data.ldif … … 39 39 rsync -ptgox /etc/default/slapd ${BACKUPDIR}/install/etc/default/ 40 40 rsync -ptgox /etc/lliurex-secrets/passgen/ldap.secret ${BACKUPDIR}/install/etc/lliurex-secrets/passgen/ 41 / etc/init.d/slapdstart41 /usr/sbin/slapd-daemon-starter start 42 42 43 43 tar -czf $BACKUPFILE -C $BACKUPDIR . … … 55 55 SLAPD_RUN="/run/slapd" 56 56 57 / etc/init.d/slapdstop57 /usr/sbin/slapd-daemon-starter stop 58 58 rm -rf ${SLAPD_CONF} || true 59 59 mkdir -p -m 0755 $SLAPD_CONF … … 78 78 rsync -ax ${BACKUPDIR}/install/* / 79 79 chmod 600 /etc/lliurex-secrets/passgen/ldap.secret 80 / etc/init.d/slapdstart80 /usr/sbin/slapd-daemon-starter start 81 81 82 82 ;;
Note: See TracChangeset
for help on using the changeset viewer.