Revision 3698
Added by Aaron Marcuse-Kubitza over 12 years ago
inputs/Makefile | ||
---|---|---|
19 | 19 |
download: _always |
20 | 20 |
$(rsyncSrcs) $(remote) $(local) |
21 | 21 |
|
22 |
##### Import logs |
|
22 | 23 |
|
24 |
rsyncLogs := $(rsync) --include="/*/" --include="/*/import/"\ |
|
25 |
--exclude="/*/import/install-*.log.sql" --include="/*/import/*.log.sql"\ |
|
26 |
--exclude="**" |
|
27 |
|
|
28 |
download-logs: _always |
|
29 |
$(rsyncLogs) $(remote) $(local) |
|
30 |
|
|
31 |
|
|
23 | 32 |
include ../lib/forwarding.Makefile |
README.TXT | ||
---|---|---|
23 | 23 |
|
24 | 24 |
Backups: |
25 | 25 |
After a new import: |
26 |
On vegbiendev: |
|
26 | 27 |
make schemas/rotate |
27 | 28 |
Rename the rotated schema using the date in the first datasource's log |
28 | 29 |
file name |
29 | 30 |
Delete previous imports so they won't bloat the full DB backup: |
30 | 31 |
make backups/public.<date>.backup/remove |
31 | 32 |
make backups/<schema>.backup/test & make backups/vegbien.backup/all & |
33 |
On local machine: |
|
34 |
make inputs/download-logs |
|
32 | 35 |
Archived imports: |
33 | 36 |
Back up: make backups/public.<date>.backup & |
34 | 37 |
Note: To back up the last import, you must archive it first (above) |
... | ... | |
40 | 43 |
Back up and rotate: make backups/vegbien.backup/rotate & |
41 | 44 |
Test: make backups/vegbien.<date>.backup/test & |
42 | 45 |
Restore: make backups/vegbien.<date>.backup/restore & |
46 |
Import logs: |
|
47 |
Download: make inputs/download-logs |
|
43 | 48 |
|
44 | 49 |
Datasource setup: |
45 | 50 |
Add a new datasource: make inputs/<name>/add |
Also available in: Unified diff
inputs/Makefile: Added download-logs to download import logs onto local machine and added it to the "After a new import" steps