tmp=/tmp/backuppc-svn/ target=/data/backuppc/ all: @echo "make install to install BackupPC using sudo" test: stop reinstall start reinstall: sudo perl ./configure.pl --batch --config-path=$(target)/data/conf/config.pl install: sudo perl ./configure.pl start: #sudo -u backuppc /data/backuppc/bin/BackupPC -d sudo $(target)/etc/backuppc start stop: #sudo -u backuppc killall BackupPC && sleep 1 || true sudo $(target)/etc/backuppc stop install-etc: test -d $(target)/etc || cp -r etc $(target) && chmod 755 $(target)/etc/backuppc asa: rm -Rf $(tmp) svn export . $(tmp) rsync -rav $(tmp) 10.210.99.1:backuppc-svn/ rm -Rf $(tmp) profile: test -e tmon.out || touch tmon.out sudo chown backuppc tmon.out sudo -u backuppc perl -d:DProf /data/backuppc/bin/BackupPC_updatedb -v 2