/[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 119 - (hide annotations)
Wed Sep 14 13:20:03 2005 UTC (18 years, 7 months ago) by dpavlin
File size: 2280 byte(s)
small fixes and improvements

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     install:
16     sudo perl ./configure.pl
17    
18     start:
19 dpavlin 28 #sudo -u backuppc /data/backuppc/bin/BackupPC -d
20 dpavlin 33 sudo $(target)/etc/backuppc start
21 dpavlin 10
22     stop:
23 dpavlin 28 #sudo -u backuppc killall BackupPC && sleep 1 || true
24 dpavlin 33 sudo $(target)/etc/backuppc stop
25 dpavlin 21
26 dpavlin 33 install-etc:
27 dpavlin 106 test -d $(target)/etc || sudo cp -r etc $(target) && sudo chmod 755 $(target)/etc/backuppc
28 dpavlin 33
29 dpavlin 61 update:
30     sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb
31    
32 dpavlin 81 index: test
33 dpavlin 98 sudo rm -Rf /data/backuppc/data/casket || true
34 dpavlin 93 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -i
35 dpavlin 81
36 dpavlin 108 xls: test
37 dpavlin 111 sudo -u backuppc /data/backuppc/bin/BackupPC_xls_report
38     which gnumeric && gnumeric /tmp/report.xls || cp -vf /tmp/report.xls ~/public_html/
39 dpavlin 69
40 dpavlin 21 asa:
41     rm -Rf $(tmp)
42     svn export . $(tmp)
43     rsync -rav $(tmp) 10.210.99.1:backuppc-svn/
44     rm -Rf $(tmp)
45 dpavlin 45
46 dpavlin 115 html:
47     test ! -z "`svn2html.pl`" && svn update && svn2html.pl > doc/Changes.html
48    
49 dpavlin 47 profile: test
50 dpavlin 45 test -e tmon.out || touch tmon.out
51     sudo chown backuppc tmon.out
52 dpavlin 56 dropdb $(db) || echo "skip drop db"
53     createdb $(db)
54 dpavlin 46 date > $(profile_file)
55     echo "## NORMAL RUN" >> $(profile_file)
56 dpavlin 119 sudo rm -Rf /data/backuppc/data/casket || true
57     estcall raw -auth admin admin 'http://localhost:1978/master?action=nodedel&name=backuppc' || true
58     estcall raw -auth admin admin 'http://localhost:1978/master?action=nodeadd&name=backuppc&label=BackupPC%20search%20index'
59 dpavlin 56 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -c $(profile_opt) | tee -a $(profile_file)
60 dpavlin 46 echo "## DProf RUN" >> $(profile_file)
61 dpavlin 119 sudo rm -Rf /data/backuppc/data/casket || true
62     estcall raw -auth admin admin 'http://localhost:1978/master?action=nodeadd&name=backuppc&label=BackupPC%20search%20index'
63 dpavlin 56 sudo -u backuppc perl -d:DProf /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt)
64 dpavlin 46 dprofpp 2>&1 | tee -a $(profile_file)
65     echo "## DBI_PROFILE RUN" >> $(profile_file)
66 dpavlin 56 DBI_PROFILE=2 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt) 2>&1 | tee -a $(profile_file)
67 dpavlin 54 mv $(profile_file) profile.`perl -e 'my @p = glob("profile.[0-9]*"); print scalar @p + 1'`
68 dpavlin 46

  ViewVC Help
Powered by ViewVC 1.1.26