Project

General

Profile

« Previous | Next » 

Revision 3402

backups/Makefile: Fixed bug where *.sql files needed to be restored using psql because pg_restore only supports "non-plain-text formats"

View differences:

Makefile
47 47
%.backup %.sql:
48 48
	"time" env data=1 $(if $(filter %.sql,$@),plain=1) $(pg_dump) $* >$@
49 49

  
50
%/restore: % _always
50
%.backup/restore: %.backup _always
51 51
	$(restoreBien) $<
52 52

  
53
%.sql/restore: %.sql _always
54
	$(bin)/psql_script_vegbien <$<
55
# pg_restore only supports "non-plain-text formats"
56
# (http://www.postgresql.org/docs/9.1/static/app-pgrestore.html)
57

  
53 58
##### Archived imports
54 59

  
55 60
confirmRm = $(call confirm,WARNING: This will delete the archived import $(1)!)

Also available in: Unified diff