Project

General

Profile

« Previous | Next » 

Revision 8883

Added by Jing Tao about 10 years ago

Backup the /etc/apache2/site-enabled directory.

View differences:

src/scripts/bash/backup-metacat.sh
29 29
# Device to be used for the DVD writer -- this may vary on your system
30 30
DVD=/dev/dvd
31 31

  
32
# Location the metacat.properties file
32
# Location of the metacat.properties file
33 33
METACATPROPERTIESPATH=/var/lib/tomcat6/webapps/knb/WEB-INF/metacat.properties
34

  
35
# Location of the apache configuration file
36
APACHECONF=/etc/apache2/sites-enabled
34 37
#
35 38
# Below here lie demons
36 39
#
......
65 68
# Backup the data files
66 69
tar czf $ARCHDIR/datafiles-backup.tgz --exclude=$ARCHROOT $DATADIR
67 70

  
71
# Backup the apache configuration files
72
tar czhf $ARCHDIR/apache-config-backup.tgz $APACHECONF 
73

  
68 74
# Backup LDAP to an LDIF file
69
slapcat -l $ARCHDIR/$DBNAME-ldap.ldif
75
#slapcat -l $ARCHDIR/$DBNAME-ldap.ldif
70 76

  
71 77
# Restart LDAP
72 78
#/etc/init.d/slapd start

Also available in: Unified diff