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

Diff of /trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 45 by dpavlin, Sat Aug 20 11:39:05 2005 UTC revision 119 by dpavlin, Wed Sep 14 13:20:03 2005 UTC
# Line 1  Line 1 
1  tmp=/tmp/backuppc-svn/  tmp=/tmp/backuppc-svn/
2  target=/data/backuppc/  target=/data/backuppc/
3    profile_opt=
4    profile_file=profile
5    db=backuppc
6    
7  all:  all:
8          @echo "make install to install BackupPC using sudo"          @echo "make install to install BackupPC using sudo"
# Line 21  stop: Line 24  stop:
24          sudo $(target)/etc/backuppc stop          sudo $(target)/etc/backuppc stop
25    
26  install-etc:  install-etc:
27          test -d $(target)/etc || cp -r etc $(target) && chmod 755 $(target)/etc/backuppc          test -d $(target)/etc || sudo cp -r etc $(target) && sudo chmod 755 $(target)/etc/backuppc
28    
29    update:
30            sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb
31    
32    index: test
33            sudo rm -Rf /data/backuppc/data/casket || true
34            sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -i
35    
36    xls: test
37            sudo -u backuppc /data/backuppc/bin/BackupPC_xls_report
38            which gnumeric && gnumeric /tmp/report.xls || cp -vf /tmp/report.xls ~/public_html/
39    
40  asa:  asa:
41          rm -Rf $(tmp)          rm -Rf $(tmp)
# Line 29  asa: Line 43  asa:
43          rsync -rav $(tmp) 10.210.99.1:backuppc-svn/          rsync -rav $(tmp) 10.210.99.1:backuppc-svn/
44          rm -Rf $(tmp)          rm -Rf $(tmp)
45    
46  profile:  html:
47            test ! -z "`svn2html.pl`" && svn update && svn2html.pl > doc/Changes.html
48    
49    profile: test
50          test -e tmon.out || touch tmon.out          test -e tmon.out || touch tmon.out
51          sudo chown backuppc tmon.out          sudo chown backuppc tmon.out
52          sudo -u backuppc perl -d:DProf /data/backuppc/bin/BackupPC_updatedb -v 2          dropdb $(db) || echo "skip drop db"
53            createdb $(db)
54            date > $(profile_file)
55            echo "## NORMAL RUN" >> $(profile_file)
56            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            sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -c $(profile_opt) | tee -a $(profile_file)
60            echo "## DProf RUN" >> $(profile_file)
61            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            sudo -u backuppc perl -d:DProf /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt)
64            dprofpp 2>&1 | tee -a $(profile_file)
65            echo "## DBI_PROFILE RUN" >> $(profile_file)
66            DBI_PROFILE=2 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt) 2>&1 | tee -a $(profile_file)
67            mv $(profile_file) profile.`perl -e 'my @p = glob("profile.[0-9]*"); print scalar @p + 1'`
68    

Legend:
Removed from v.45  
changed lines
  Added in v.119

  ViewVC Help
Powered by ViewVC 1.1.26