/[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 54 - (hide annotations)
Sun Aug 21 12:46:24 2005 UTC (18 years, 8 months ago) by dpavlin
File size: 1339 byte(s)
another fix for profile target

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

  ViewVC Help
Powered by ViewVC 1.1.26