/[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

Contents of /trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


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

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

  ViewVC Help
Powered by ViewVC 1.1.26