/[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 251 by dpavlin, Mon Dec 12 12:16:01 2005 UTC
# Line 1  Line 1 
1    tmp=/tmp/backuppc-svn/
2    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"
9    
10  test: stop reinstall start  test: stop reinstall start
11    
12  reinstall:  reinstall:
13          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
14    
15    agi:
16            sudo /etc/init.d/backuppc-agi stop
17            sudo perl ./configure.pl --batch --config-path=/data/backuppc-agi/data/conf/config.pl
18            cd custom/ && find . -type f | grep -v '.svn' | sudo cpio -puV /data/backuppc-agi/
19            sudo /etc/init.d/backuppc-agi start
20    
21    qc:
22            sudo /etc/init.d/backuppc-qc stop
23            sudo perl ./configure.pl --batch --config-path=/data/backuppc-qc/data/conf/config.pl
24            cd custom/ && find . -type f | grep -v '.svn' | sudo cpio -puV /data/backuppc-qc/
25            sudo /etc/init.d/backuppc-qc start
26    
27  install:  install:
28          sudo perl ./configure.pl          sudo perl ./configure.pl
29    
30  start:  start:
31          sudo -u backuppc /data/backuppc/bin/BackupPC -d          #sudo -u backuppc /data/backuppc/bin/BackupPC -d
32            sudo $(target)/etc/backuppc start
33    
34  stop:  stop:
35          sudo -u backuppc killall BackupPC && sleep 1 || true          #sudo -u backuppc killall BackupPC && sleep 1 || true
36            sudo $(target)/etc/backuppc stop
37    
38    install-etc:
39            test -d $(target)/etc || sudo cp -r etc $(target) && sudo chmod 755 $(target)/etc/backuppc
40    
41    update:
42            sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb
43    
44    index: test
45            sudo rm -Rf /data/backuppc/data/casket || true
46            sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -j
47    
48    xls: test
49            sudo -u backuppc /data/backuppc/bin/BackupPC_xls_report
50            which gnumeric && gnumeric /tmp/report.xls || cp -vf /tmp/report.xls ~/public_html/
51    
52    asa:
53            rm -Rf $(tmp)
54            svn export . $(tmp)
55            rsync -rav $(tmp) 10.210.99.1:backuppc-svn/
56            rm -Rf $(tmp)
57    
58    html:
59            test ! -z "`svn2html.pl`" && svn update && svn2html.pl > doc/Changes.html
60    
61    profile: test
62            test -e tmon.out || touch tmon.out
63            sudo chown backuppc tmon.out
64            dropdb $(db) || echo "skip drop db"
65            createdb $(db)
66            date > $(profile_file)
67            echo "## NORMAL RUN" >> $(profile_file)
68            sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -c $(profile_opt) | tee -a $(profile_file)
69            echo "## DProf RUN" >> $(profile_file)
70            sudo -u backuppc perl -d:DProf /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt)
71            dprofpp 2>&1 | tee -a $(profile_file)
72            echo "## DBI_PROFILE RUN" >> $(profile_file)
73            DBI_PROFILE=2 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt) 2>&1 | tee -a $(profile_file)
74            mv $(profile_file) profile.`perl -e 'my @p = glob("profile.[0-9]*"); print scalar @p + 1'`
75    
76    tar: test
77            psql -c "delete from backup_parts" backuppc
78            sudo -u backuppc /data/backuppc/bin/BackupPC_tarIncCreate -h llin -s /etc -n 10 -v
79    
80    inc: test
81            sudo -u backuppc /data/backuppc/bin/BackupPC_incPartsUpdate -c -d
82            
83    burn: test
84            sudo /data/backuppc/bin/BackupPC_burnArchiveCLI

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

  ViewVC Help
Powered by ViewVC 1.1.26