r10861@llin: dpavlin | 2006-04-28 11:06:44 +0200
authordpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Fri, 28 Apr 2006 09:07:38 +0000 (09:07 +0000)
committerdpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Fri, 28 Apr 2006 09:07:38 +0000 (09:07 +0000)
 better restore target (cleanup restore host before beginning)

git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/BackupPC/trunk@359 8392b6e1-25fa-0310-8288-cc32f8e212ea

Makefile

index 51ea096..819163c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -78,6 +78,9 @@ burn: test
        psql -c "delete from archive_burned" backuppc
        sudo /data/backuppc/bin/BackupPC_burnArchiveCLI
 
-restore: test
+cleanup-restore:
+       sudo -u backuppc rm -Rf /data/backuppc/data/pc/restore/
+
+restore: cleanup-restore test
        sleep 1
        sudo -u backuppc ./bin/BackupPC_recover_from_increments /data/backuppc/temp/llin_etc*