new install-etc target
[BackupPC.git] / Makefile
1 tmp=/tmp/backuppc-svn/
2 target=/data/backuppc/
3
4 all:
5         @echo "make install to install BackupPC using sudo"
6
7 test: stop reinstall start
8
9 reinstall:
10         sudo perl ./configure.pl --batch --config-path=$(target)/data/conf/config.pl
11
12 install:
13         sudo perl ./configure.pl
14
15 start:
16         #sudo -u backuppc /data/backuppc/bin/BackupPC -d
17         sudo $(target)/etc/backuppc start
18
19 stop:
20         #sudo -u backuppc killall BackupPC && sleep 1 || true
21         sudo $(target)/etc/backuppc stop
22
23 install-etc:
24         test -d $(target)/etc || cp -r etc $(target) && chmod 755 $(target)/etc/backuppc
25
26 asa:
27         rm -Rf $(tmp)
28         svn export . $(tmp)
29         rsync -rav $(tmp) 10.210.99.1:backuppc-svn/
30         rm -Rf $(tmp)