use DateTime::Duration to correctly convert partial dates in to fields
[BackupPC.git] / Makefile
index 94872f5..83dc668 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,10 +9,12 @@ update:
        dropdb backuppc
        createdb backuppc
        createlang plpgsql backuppc
-       sudo -u backuppc rm -Rvf /data/BackupPC/kinosearch /data/BackupPC/dvd_tar/* /data/BackupPC/pc/dvd_tar/*
+       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
-       sudo -u backuppc ./bin/BackupPC_ASA_ArchiveStart dvd_tar backuppc dellboy
+
+test: reset
+       ./test/archive.sh
 
 reset: clean update