Project

General

Profile

« Previous | Next » 

Revision 3373

main Makefile: VegBIEN DB: Schemas: Added schemas/%.backup/restore and documented it in README.TXT

View differences:

Makefile
250 250
schemas/%.backup:
251 251
	$(if $(wildcard $@),,"time" env data=1 bin/pg_dump_vegbien $* >$@)
252 252

  
253
restoreBien = "time" bin/postgres_vegbien pg_restore --exit-on-error --verbose\
254
--dbname=vegbien
255
# pg_restore doesn't support PGDATABASE env var
256

  
257
schemas/%.backup/restore: schemas/%.backup _always
258
	$(restoreBien) $< &>$<.log
259

  
253 260
schemas/%/rm_indexes: _always
254 261
	bin/pg_dump_vegbien $*|bin/mk_rm_indexes|$(psqlAsBien) --echo-all
255 262

  

Also available in: Unified diff