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 /etc/init.d/backuppc-agi stop
17 sudo perl ./configure.pl --batch --config-path=/data/backuppc-agi/data/conf/config.pl
18 cd custom/ && find . -type f | grep -v '.svn' | sudo cpio -puV /data/backuppc-agi/
19 sudo /etc/init.d/backuppc-agi start
22 sudo /etc/init.d/backuppc-qc stop
23 sudo perl ./configure.pl --batch --config-path=/data/backuppc-qc/data/conf/config.pl
24 cd custom/ && find . -type f | grep -v '.svn' | sudo cpio -puV /data/backuppc-qc/
25 sudo /etc/init.d/backuppc-qc start
28 sudo perl ./configure.pl
31 #sudo -u backuppc /data/backuppc/bin/BackupPC -d
32 sudo $(target)/etc/backuppc start
35 #sudo -u backuppc killall BackupPC && sleep 1 || true
36 sudo $(target)/etc/backuppc stop
39 test -d $(target)/etc || sudo cp -r etc $(target) && sudo chmod 755 $(target)/etc/backuppc
42 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb
45 sudo rm -Rf /data/backuppc/data/casket || true
46 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -j
49 sudo -u backuppc /data/backuppc/bin/BackupPC_xls_report
50 which gnumeric && gnumeric /tmp/report.xls || cp -vf /tmp/report.xls ~/public_html/
53 test ! -z "`svn2html.pl`" && svn update && svn2html.pl > doc/Changes.html
56 test -e tmon.out || touch tmon.out
57 sudo chown backuppc tmon.out
58 dropdb $(db) || echo "skip drop db"
60 date > $(profile_file)
61 echo "## NORMAL RUN" >> $(profile_file)
62 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -c $(profile_opt) | tee -a $(profile_file)
63 echo "## DProf RUN" >> $(profile_file)
64 sudo -u backuppc perl -d:DProf /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt)
65 dprofpp 2>&1 | tee -a $(profile_file)
66 echo "## DBI_PROFILE RUN" >> $(profile_file)
67 DBI_PROFILE=2 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt) 2>&1 | tee -a $(profile_file)
68 mv $(profile_file) profile.`perl -e 'my @p = glob("profile.[0-9]*"); print scalar @p + 1'`
71 psql -c "delete from backup_parts" backuppc
72 sudo -u backuppc /data/backuppc/bin/BackupPC_tarIncCreate -h llin -s /etc -n 10 -v -f -d
75 sudo -u backuppc /data/backuppc/bin/BackupPC_incPartsUpdate -c
78 psql -c "delete from archive_burned" backuppc
79 sudo /data/backuppc/bin/BackupPC_burnArchiveCLI