--- trunk/Makefile 2005/06/23 13:14:04 11 +++ trunk/Makefile 2005/07/31 18:58:26 33 @@ -1,16 +1,30 @@ +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=/data/backuppc/data/conf/config.pl + 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 -u backuppc /data/backuppc/bin/BackupPC -d + sudo $(target)/etc/backuppc start stop: - sudo -u backuppc killall BackupPC || true + #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)