+ #sudo -u backuppc killall BackupPC && sleep 1 || true
+ sudo $(target)/etc/backuppc stop
+
+install-etc:
+ test -d $(target)/etc || sudo cp -r etc $(target) && sudo chmod 755 $(target)/etc/backuppc
+
+update:
+ sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb
+
+index: test
+ sudo rm -Rf /data/backuppc/data/casket || true
+ sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -j
+
+xls: test
+ sudo -u backuppc /data/backuppc/bin/BackupPC_xls_report
+ which gnumeric && gnumeric /tmp/report.xls || cp -vf /tmp/report.xls ~/public_html/
+
+html:
+ test ! -z "`svn2html.pl`" && svn update && svn2html.pl > doc/Changes.html
+
+profile: test
+ test -e tmon.out || touch tmon.out
+ sudo chown backuppc tmon.out
+ dropdb $(db) || echo "skip drop db"
+ createdb $(db)
+ date > $(profile_file)
+ echo "## NORMAL RUN" >> $(profile_file)
+ sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -c $(profile_opt) | tee -a $(profile_file)
+ echo "## DProf RUN" >> $(profile_file)
+ sudo -u backuppc perl -d:DProf /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt)
+ dprofpp 2>&1 | tee -a $(profile_file)
+ echo "## DBI_PROFILE RUN" >> $(profile_file)
+ DBI_PROFILE=2 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt) 2>&1 | tee -a $(profile_file)
+ mv $(profile_file) profile.`perl -e 'my @p = glob("profile.[0-9]*"); print scalar @p + 1'`
+
+tar: test
+ psql -c "delete from backup_parts" backuppc
+ sudo -u backuppc /data/backuppc/bin/BackupPC_tarIncCreate -h llin -s /etc -n 10 -v -f -d