/[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 12 by dpavlin, Thu Jun 23 17:19:41 2005 UTC revision 54 by dpavlin, Sun Aug 21 12:46:24 2005 UTC
# Line 1  Line 1 
1    tmp=/tmp/backuppc-svn/
2    target=/data/backuppc/
3    profile_opt=-d
4    profile_file=profile
5    
6  all:  all:
7          @echo "make install to install BackupPC using sudo"          @echo "make install to install BackupPC using sudo"
8    
9  test: stop reinstall start  test: stop reinstall start
10    
11  reinstall:  reinstall:
12          sudo perl ./configure.pl --batch --config-path=/data/backuppc/data/conf/config.pl          sudo perl ./configure.pl --batch --config-path=$(target)/data/conf/config.pl
13    
14  install:  install:
15          sudo perl ./configure.pl          sudo perl ./configure.pl
16    
17  start:  start:
18          sudo -u backuppc /data/backuppc/bin/BackupPC -d          #sudo -u backuppc /data/backuppc/bin/BackupPC -d
19            sudo $(target)/etc/backuppc start
20    
21  stop:  stop:
22          sudo -u backuppc killall BackupPC && sleep 1 || true          #sudo -u backuppc killall BackupPC && sleep 1 || true
23            sudo $(target)/etc/backuppc stop
24    
25    install-etc:
26            test -d $(target)/etc || cp -r etc $(target) && chmod 755 $(target)/etc/backuppc
27    
28    asa:
29            rm -Rf $(tmp)
30            svn export . $(tmp)
31            rsync -rav $(tmp) 10.210.99.1:backuppc-svn/
32            rm -Rf $(tmp)
33    
34    profile: test
35            test -e tmon.out || touch tmon.out
36            sudo chown backuppc tmon.out
37            date > $(profile_file)
38            echo "## NORMAL RUN" >> $(profile_file)
39            sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb $(profile_opt) | tee -a $(profile_file)
40            echo "## DProf RUN" >> $(profile_file)
41            sudo -u backuppc perl -d:DProf /data/backuppc/bin/BackupPC_updatedb $(profile_opt)
42            dprofpp 2>&1 | tee -a $(profile_file)
43            echo "## DBI_PROFILE RUN" >> $(profile_file)
44            DBI_PROFILE=2 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb $(profile_opt) 2>&1 | tee -a $(profile_file)
45            mv $(profile_file) profile.`perl -e 'my @p = glob("profile.[0-9]*"); print scalar @p + 1'`
46    

Legend:
Removed from v.12  
changed lines
  Added in v.54

  ViewVC Help
Powered by ViewVC 1.1.26