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 /data/backuppc/etc/backuppc start
+ sudo $(target)/etc/backuppc start
stop:
#sudo -u backuppc killall BackupPC && sleep 1 || true
- sudo /data/backuppc/etc/backuppc stop
+ sudo $(target)/etc/backuppc stop
+
+install-etc:
+ test -d $(target)/etc || cp -r etc $(target) && chmod 755 $(target)/etc/backuppc
asa:
rm -Rf $(tmp)