Project

General

Profile

« Previous | Next » 

Revision 4751

backups/Makefile: Backups: Full DB: Specify the date suffix of the backup when it's created rather than adding it afterwards. This allows the user to specify a suffix that matches the corresponding public-schema backup.

View differences:

Makefile
45 45
%.sql: %
46 46
	$(restore) $< >$@
47 47

  
48
# Full DB
49
# Must come before %.backup to be matched first
50
vegbien.%.backup:
51
	$(backup) all >$@
52

  
48 53
backup* = $(backup) $* >$@
49 54

  
50 55
# Note: This can't be used for the current (unrotated) public schema because
......
84 89
%.backup/rm_indexes: %.backup _always
85 90
	$(pg_dump) $*|$(bin)/mk_rm_indexes|$(psqlVerbose)
86 91

  
87
#### Full DB
88

  
89
vegbien.backup/all: _always vegbien.backup/test vegbien.backup/rotate ;
90

  
91
vegbien.backup:
92
	$(backup) all >$@
93

  
94 92
##### Synchronization
95 93

  
96 94
rsyncBackups := $(rsync) --include="/*.backup" --include="/*.sql" --exclude="**"

Also available in: Unified diff