8 @echo "make install to install BackupPC using sudo"
10 test: stop reinstall start
13 sudo perl ./configure.pl --batch --config-path=$(target)/data/conf/config.pl
16 sudo perl ./configure.pl
19 #sudo -u backuppc /data/backuppc/bin/BackupPC -d
20 sudo $(target)/etc/backuppc start
23 #sudo -u backuppc killall BackupPC && sleep 1 || true
24 sudo $(target)/etc/backuppc stop
27 test -d $(target)/etc || sudo cp -r etc $(target) && sudo chmod 755 $(target)/etc/backuppc
30 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb
33 sudo rm -Rf /data/backuppc/data/casket || true
34 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -j
37 sudo -u backuppc /data/backuppc/bin/BackupPC_xls_report
38 which gnumeric && gnumeric /tmp/report.xls || cp -vf /tmp/report.xls ~/public_html/
43 rsync -rav $(tmp) 10.210.99.1:backuppc-svn/
47 test ! -z "`svn2html.pl`" && svn update && svn2html.pl > doc/Changes.html
50 test -e tmon.out || touch tmon.out
51 sudo chown backuppc tmon.out
52 dropdb $(db) || echo "skip drop db"
54 date > $(profile_file)
55 echo "## NORMAL RUN" >> $(profile_file)
56 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -c $(profile_opt) | tee -a $(profile_file)
57 echo "## DProf RUN" >> $(profile_file)
58 sudo -u backuppc perl -d:DProf /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt)
59 dprofpp 2>&1 | tee -a $(profile_file)
60 echo "## DBI_PROFILE RUN" >> $(profile_file)
61 DBI_PROFILE=2 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt) 2>&1 | tee -a $(profile_file)
62 mv $(profile_file) profile.`perl -e 'my @p = glob("profile.[0-9]*"); print scalar @p + 1'`
65 sudo -u backuppc /data/backuppc/bin/BackupPC_incPartsUpdate