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 |
date > $(profile_file) |
date > $(profile_file) |
42 |
dprofpp 2>&1 | tee -a $(profile_file) |
dprofpp 2>&1 | tee -a $(profile_file) |
43 |
echo "## DBI_PROFILE RUN" >> $(profile_file) |
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) |
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'` |
mv $(profile_file) profile.`perl -e 'my @p = glob("profile.[0-9]*"); print scalar @p + 2'` |
46 |
|
|