/[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 46 by dpavlin, Sat Aug 20 12:40:24 2005 UTC revision 69 by dpavlin, Mon Aug 22 09:47:06 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=-d  profile_opt=
4  profile_file=profile  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 25  stop: Line 26  stop:
26  install-etc:  install-etc:
27          test -d $(target)/etc || cp -r etc $(target) && chmod 755 $(target)/etc/backuppc          test -d $(target)/etc || cp -r etc $(target) && chmod 755 $(target)/etc/backuppc
28    
29    update:
30            sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb
31    
32    xls:
33            sudo -u backuppc /data/backuppc/bin/BackupPC_xls_report && cp -vf /tmp/report.xls ~/public_html/
34    
35  asa:  asa:
36          rm -Rf $(tmp)          rm -Rf $(tmp)
37          svn export . $(tmp)          svn export . $(tmp)
38          rsync -rav $(tmp) 10.210.99.1:backuppc-svn/          rsync -rav $(tmp) 10.210.99.1:backuppc-svn/
39          rm -Rf $(tmp)          rm -Rf $(tmp)
40    
41  profile:  profile: test
42          test -e tmon.out || touch tmon.out          test -e tmon.out || touch tmon.out
43          sudo chown backuppc tmon.out          sudo chown backuppc tmon.out
44            dropdb $(db) || echo "skip drop db"
45            createdb $(db)
46          date > $(profile_file)          date > $(profile_file)
47          echo "## NORMAL RUN" >> $(profile_file)          echo "## NORMAL RUN" >> $(profile_file)
48          sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb $(profile_opt) | tee -a $(profile_file)          sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -c $(profile_opt) | tee -a $(profile_file)
49          echo "## DProf RUN" >> $(profile_file)          echo "## DProf RUN" >> $(profile_file)
50          sudo -u backuppc perl -d:DProf /data/backuppc/bin/BackupPC_updatedb $(profile_opt)          sudo -u backuppc perl -d:DProf /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt)
51          dprofpp 2>&1 | tee -a $(profile_file)          dprofpp 2>&1 | tee -a $(profile_file)
52          echo "## DBI_PROFILE RUN" >> $(profile_file)          echo "## DBI_PROFILE RUN" >> $(profile_file)
53          DBI_PROFILE=2 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb $(profile_opt) 2>&1 | tee -a $(profile_file)          DBI_PROFILE=2 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt) 2>&1 | tee -a $(profile_file)
54          mv $(profile_file) profile.`perl -e 'my @p = glob("profile.[0-9]*"); print scalar @p + 1'`          mv $(profile_file) profile.`perl -e 'my @p = glob("profile.[0-9]*"); print scalar @p + 1'`
55    

Legend:
Removed from v.46  
changed lines
  Added in v.69

  ViewVC Help
Powered by ViewVC 1.1.26