1 |
tmp=/tmp/backuppc-svn/ |
tmp=/tmp/backuppc-svn/ |
2 |
target=/data/backuppc/ |
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" |
31 |
rsync -rav $(tmp) 10.210.99.1:backuppc-svn/ |
rsync -rav $(tmp) 10.210.99.1:backuppc-svn/ |
32 |
rm -Rf $(tmp) |
rm -Rf $(tmp) |
33 |
|
|
34 |
profile: |
profile: test |
35 |
test -e tmon.out || touch tmon.out |
test -e tmon.out || touch tmon.out |
36 |
sudo chown backuppc tmon.out |
sudo chown backuppc tmon.out |
37 |
sudo -u backuppc perl -d:DProf /data/backuppc/bin/BackupPC_updatedb -v 2 |
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 + 2'` |
46 |
|
|