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:

backups/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="**"
README.TXT
39 39
    Otherwise, continue
40 40
    Delete previous imports so they won't bloat the full DB backup:
41 41
        make backups/public.<datetime>.backup/remove
42
    make backups/<schema>.backup/test & make backups/vegbien.backup/all &
42
    make backups/public.<datetime>.backup/test &
43
    make backups/vegbien.<datetime>.backup/test &
43 44
    On local machine:
44 45
        make inputs/download-logs
45 46
        make backups/download

Also available in: Unified diff