53 |
createdb $(db) |
createdb $(db) |
54 |
date > $(profile_file) |
date > $(profile_file) |
55 |
echo "## NORMAL RUN" >> $(profile_file) |
echo "## NORMAL RUN" >> $(profile_file) |
56 |
|
sudo rm -Rf /data/backuppc/data/casket || true |
57 |
|
estcall raw -auth admin admin 'http://localhost:1978/master?action=nodedel&name=backuppc' || true |
58 |
|
estcall raw -auth admin admin 'http://localhost:1978/master?action=nodeadd&name=backuppc&label=BackupPC%20search%20index' |
59 |
sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -c $(profile_opt) | tee -a $(profile_file) |
sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -c $(profile_opt) | tee -a $(profile_file) |
60 |
echo "## DProf RUN" >> $(profile_file) |
echo "## DProf RUN" >> $(profile_file) |
61 |
|
sudo rm -Rf /data/backuppc/data/casket || true |
62 |
|
estcall raw -auth admin admin 'http://localhost:1978/master?action=nodeadd&name=backuppc&label=BackupPC%20search%20index' |
63 |
sudo -u backuppc perl -d:DProf /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt) |
sudo -u backuppc perl -d:DProf /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt) |
64 |
dprofpp 2>&1 | tee -a $(profile_file) |
dprofpp 2>&1 | tee -a $(profile_file) |
65 |
echo "## DBI_PROFILE RUN" >> $(profile_file) |
echo "## DBI_PROFILE RUN" >> $(profile_file) |