7 @echo "make install to install BackupPC using sudo"
9 test: stop reinstall start
12 sudo perl ./configure.pl --batch --config-path=$(target)/data/conf/config.pl
15 sudo perl ./configure.pl
18 #sudo -u backuppc /data/backuppc/bin/BackupPC -d
19 sudo $(target)/etc/backuppc start
22 #sudo -u backuppc killall BackupPC && sleep 1 || true
23 sudo $(target)/etc/backuppc stop
26 test -d $(target)/etc || cp -r etc $(target) && chmod 755 $(target)/etc/backuppc
31 rsync -rav $(tmp) 10.210.99.1:backuppc-svn/
35 test -e tmon.out || touch tmon.out
36 sudo chown backuppc tmon.out
37 date > $(profile_file)
38 echo "## NORMAL RUN" >> $(profile_file)
39 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb $(profile_opt) | tee -a $(profile_file)
40 echo "## DProf RUN" >> $(profile_file)
41 sudo -u backuppc perl -d:DProf /data/backuppc/bin/BackupPC_updatedb $(profile_opt)
42 dprofpp 2>&1 | tee -a $(profile_file)
43 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)
45 mv $(profile_file) profile.`perl -e 'my @p = glob("profile.[0-9]*"); print scalar @p + 1'`