lowercase (lc) hostname to get increments
[BackupPC.git] / Makefile
index 407c3ee..83dc668 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,17 +2,20 @@ all:
        @echo "make reset"
 
 clean:
-       dropdb backuppc
-       createdb backuppc
-       createlang plpgsql backuppc
        sudo chown backuppc cgi-bin/index.cgi
        sudo chmod u+s cgi-bin/index.cgi
-       sudo rm -Rf /tmp/kinoindex
 
 update:
-       sudo -u backuppc ./bin/BackupPC_updatedb -c
+       dropdb backuppc
+       createdb backuppc
+       createlang plpgsql backuppc
+       sudo -u backuppc rm -Rvf /data/BackupPC/kinosearch /data/BackupPC/_search_archive/* /data/BackupPC/pc/_search_archive/*
+       sudo -u backuppc /etc/init.d/BackupPC restart
+       sudo -u backuppc ./bin/BackupPC_ASA_SearchUpdate -c -m 0
+
+test: reset
+       ./test/archive.sh
+
+reset: clean update
 
-tar:
-       sudo -u backuppc ./bin/BackupPC_incPartsUpdate
 
-reset: clean update tar