/[BackupPC]/trunk/Makefile
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 384 - (hide annotations)
Tue Jun 5 12:01:25 2007 UTC (15 years, 6 months ago) by iklaric
File size: 3113 byte(s)
- fixed hyperEstraier index URI setting in config file to work finewq

1 dpavlin 21 tmp=/tmp/backuppc-svn/
2 dpavlin 33 target=/data/backuppc/
3 dpavlin 56 profile_opt=
4 dpavlin 46 profile_file=profile
5 dpavlin 56 db=backuppc
6 dpavlin 21
7 dpavlin 10 all:
8     @echo "make install to install BackupPC using sudo"
9    
10 dpavlin 11 test: stop reinstall start
11    
12     reinstall:
13 dpavlin 33 sudo perl ./configure.pl --batch --config-path=$(target)/data/conf/config.pl
14 dpavlin 10
15 dpavlin 245 agi:
16     sudo /etc/init.d/backuppc-agi stop
17     sudo perl ./configure.pl --batch --config-path=/data/backuppc-agi/data/conf/config.pl
18 dpavlin 249 cd custom/ && find . -type f | grep -v '.svn' | sudo cpio -puV /data/backuppc-agi/
19 iklaric 384 cat /data/backuppc-agi/data/conf/config.pl | perl -e 'while(<>){if($$_=~m/^(.*)___ESTRAIER_URI___(.*)$$/gi){print "$${1}http://localhost:1978/nodes/agi$$2";}else{print $$_;}}' | less
20 dpavlin 245 sudo /etc/init.d/backuppc-agi start
21    
22     qc:
23     sudo /etc/init.d/backuppc-qc stop
24     sudo perl ./configure.pl --batch --config-path=/data/backuppc-qc/data/conf/config.pl
25 dpavlin 249 cd custom/ && find . -type f | grep -v '.svn' | sudo cpio -puV /data/backuppc-qc/
26 iklaric 384 cat /data/backuppc-qc/data/conf/config.pl | perl -e 'while(<>){if($$_=~m/^(.*)___ESTRAIER_URI___(.*)$$/gi){print "$${1}http://localhost:1978/nodes/qc$$2";}else{print $$_;}}' | less
27 dpavlin 245 sudo /etc/init.d/backuppc-qc start
28    
29 dpavlin 10 install:
30     sudo perl ./configure.pl
31    
32     start:
33 dpavlin 28 #sudo -u backuppc /data/backuppc/bin/BackupPC -d
34 dpavlin 33 sudo $(target)/etc/backuppc start
35 dpavlin 10
36     stop:
37 dpavlin 28 #sudo -u backuppc killall BackupPC && sleep 1 || true
38 dpavlin 33 sudo $(target)/etc/backuppc stop
39 dpavlin 21
40 dpavlin 33 install-etc:
41 dpavlin 106 test -d $(target)/etc || sudo cp -r etc $(target) && sudo chmod 755 $(target)/etc/backuppc
42 dpavlin 33
43 dpavlin 61 update:
44     sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb
45    
46 dpavlin 81 index: test
47 dpavlin 98 sudo rm -Rf /data/backuppc/data/casket || true
48 dpavlin 131 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -j
49 dpavlin 81
50 dpavlin 108 xls: test
51 dpavlin 111 sudo -u backuppc /data/backuppc/bin/BackupPC_xls_report
52     which gnumeric && gnumeric /tmp/report.xls || cp -vf /tmp/report.xls ~/public_html/
53 dpavlin 69
54 dpavlin 115 html:
55     test ! -z "`svn2html.pl`" && svn update && svn2html.pl > doc/Changes.html
56    
57 dpavlin 47 profile: test
58 dpavlin 45 test -e tmon.out || touch tmon.out
59     sudo chown backuppc tmon.out
60 dpavlin 56 dropdb $(db) || echo "skip drop db"
61     createdb $(db)
62 dpavlin 46 date > $(profile_file)
63     echo "## NORMAL RUN" >> $(profile_file)
64 dpavlin 56 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -c $(profile_opt) | tee -a $(profile_file)
65 dpavlin 46 echo "## DProf RUN" >> $(profile_file)
66 dpavlin 56 sudo -u backuppc perl -d:DProf /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt)
67 dpavlin 46 dprofpp 2>&1 | tee -a $(profile_file)
68     echo "## DBI_PROFILE RUN" >> $(profile_file)
69 dpavlin 56 DBI_PROFILE=2 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt) 2>&1 | tee -a $(profile_file)
70 dpavlin 54 mv $(profile_file) profile.`perl -e 'my @p = glob("profile.[0-9]*"); print scalar @p + 1'`
71 dpavlin 46
72 dpavlin 234 tar: test
73 dpavlin 235 psql -c "delete from backup_parts" backuppc
74 dpavlin 252 sudo -u backuppc /data/backuppc/bin/BackupPC_tarIncCreate -h llin -s /etc -n 10 -v -f -d
75 dpavlin 234
76 dpavlin 157 inc: test
77 dpavlin 328 sudo -u backuppc /data/backuppc/bin/BackupPC_incPartsUpdate -c
78 dpavlin 157
79 dpavlin 199 burn: test
80 dpavlin 336 psql -c "delete from archive_burned" backuppc
81 dpavlin 199 sudo /data/backuppc/bin/BackupPC_burnArchiveCLI
82 dpavlin 343
83 dpavlin 363 clean-restore:
84 dpavlin 359 sudo -u backuppc rm -Rf /data/backuppc/data/pc/restore/
85    
86 dpavlin 363 restore: clean-restore test
87 dpavlin 343 sleep 1
88 dpavlin 361 sudo ./bin/BackupPC_recover_from_increments /data/backuppc/temp/llin_etc*

  ViewVC Help
Powered by ViewVC 1.1.26