/[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 245 - (hide annotations)
Fri Dec 9 12:42:03 2005 UTC (18 years, 5 months ago) by dpavlin
File size: 2449 byte(s)
fix install targets agi and qc

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     sudo /etc/init.d/backuppc-agi start
19    
20     qc:
21     sudo /etc/init.d/backuppc-qc stop
22     sudo perl ./configure.pl --batch --config-path=/data/backuppc-qc/data/conf/config.pl
23     sudo /etc/init.d/backuppc-qc start
24    
25 dpavlin 10 install:
26     sudo perl ./configure.pl
27    
28     start:
29 dpavlin 28 #sudo -u backuppc /data/backuppc/bin/BackupPC -d
30 dpavlin 33 sudo $(target)/etc/backuppc start
31 dpavlin 10
32     stop:
33 dpavlin 28 #sudo -u backuppc killall BackupPC && sleep 1 || true
34 dpavlin 33 sudo $(target)/etc/backuppc stop
35 dpavlin 21
36 dpavlin 33 install-etc:
37 dpavlin 106 test -d $(target)/etc || sudo cp -r etc $(target) && sudo chmod 755 $(target)/etc/backuppc
38 dpavlin 33
39 dpavlin 61 update:
40     sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb
41    
42 dpavlin 81 index: test
43 dpavlin 98 sudo rm -Rf /data/backuppc/data/casket || true
44 dpavlin 131 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -j
45 dpavlin 81
46 dpavlin 108 xls: test
47 dpavlin 111 sudo -u backuppc /data/backuppc/bin/BackupPC_xls_report
48     which gnumeric && gnumeric /tmp/report.xls || cp -vf /tmp/report.xls ~/public_html/
49 dpavlin 69
50 dpavlin 21 asa:
51     rm -Rf $(tmp)
52     svn export . $(tmp)
53     rsync -rav $(tmp) 10.210.99.1:backuppc-svn/
54     rm -Rf $(tmp)
55 dpavlin 45
56 dpavlin 115 html:
57     test ! -z "`svn2html.pl`" && svn update && svn2html.pl > doc/Changes.html
58    
59 dpavlin 47 profile: test
60 dpavlin 45 test -e tmon.out || touch tmon.out
61     sudo chown backuppc tmon.out
62 dpavlin 56 dropdb $(db) || echo "skip drop db"
63     createdb $(db)
64 dpavlin 46 date > $(profile_file)
65     echo "## NORMAL RUN" >> $(profile_file)
66 dpavlin 56 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -c $(profile_opt) | tee -a $(profile_file)
67 dpavlin 46 echo "## DProf RUN" >> $(profile_file)
68 dpavlin 56 sudo -u backuppc perl -d:DProf /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt)
69 dpavlin 46 dprofpp 2>&1 | tee -a $(profile_file)
70     echo "## DBI_PROFILE RUN" >> $(profile_file)
71 dpavlin 56 DBI_PROFILE=2 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt) 2>&1 | tee -a $(profile_file)
72 dpavlin 54 mv $(profile_file) profile.`perl -e 'my @p = glob("profile.[0-9]*"); print scalar @p + 1'`
73 dpavlin 46
74 dpavlin 234 tar: test
75 dpavlin 235 psql -c "delete from backup_parts" backuppc
76 dpavlin 234 sudo -u backuppc /data/backuppc/bin/BackupPC_tarIncCreate -h llin -s /etc -n 10 -d -v
77    
78 dpavlin 157 inc: test
79 dpavlin 217 sudo -u backuppc /data/backuppc/bin/BackupPC_incPartsUpdate -c -d
80 dpavlin 157
81 dpavlin 199 burn: test
82     sudo /data/backuppc/bin/BackupPC_burnArchiveCLI

  ViewVC Help
Powered by ViewVC 1.1.26