lowercase (lc) hostname to get increments
[BackupPC.git] / Makefile
index d796a5a..83dc668 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,13 @@ update:
        dropdb backuppc
        createdb backuppc
        createlang plpgsql backuppc
-       sudo -u backuppc ./bin/BackupPC_ASA_PostDump_SearchUpdate -c
+       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
 
+