33 |
sudo rm -Rf /data/backuppc/data/casket || true |
sudo rm -Rf /data/backuppc/data/casket || true |
34 |
sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -i |
sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -i |
35 |
|
|
36 |
xls: |
xls: test |
37 |
sudo -u backuppc /data/backuppc/bin/BackupPC_xls_report && cp -vf /tmp/report.xls ~/public_html/ |
sudo -u backuppc /data/backuppc/bin/BackupPC_xls_report |
38 |
|
which gnumeric && gnumeric /tmp/report.xls || cp -vf /tmp/report.xls ~/public_html/ |
39 |
|
|
40 |
asa: |
asa: |
41 |
rm -Rf $(tmp) |
rm -Rf $(tmp) |
43 |
rsync -rav $(tmp) 10.210.99.1:backuppc-svn/ |
rsync -rav $(tmp) 10.210.99.1:backuppc-svn/ |
44 |
rm -Rf $(tmp) |
rm -Rf $(tmp) |
45 |
|
|
46 |
|
html: |
47 |
|
test ! -z "`svn2html.pl`" && svn update && svn2html.pl > doc/Changes.html |
48 |
|
|
49 |
profile: test |
profile: test |
50 |
test -e tmon.out || touch tmon.out |
test -e tmon.out || touch tmon.out |
51 |
sudo chown backuppc tmon.out |
sudo chown backuppc tmon.out |
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) |