12 |
reinstall: |
reinstall: |
13 |
sudo perl ./configure.pl --batch --config-path=$(target)/data/conf/config.pl |
sudo perl ./configure.pl --batch --config-path=$(target)/data/conf/config.pl |
14 |
|
|
15 |
|
agi: |
16 |
|
sudo /etc/init.d/backuppc-agi stop |
17 |
|
sudo perl ./configure.pl --batch --config-path=/data/backuppc-agi/data/conf/config.pl |
18 |
|
sudo /etc/init.d/backuppc-agi start |
19 |
|
|
20 |
|
qc: |
21 |
|
sudo /etc/init.d/backuppc-qc stop |
22 |
|
sudo perl ./configure.pl --batch --config-path=/data/backuppc-qc/data/conf/config.pl |
23 |
|
sudo /etc/init.d/backuppc-qc start |
24 |
|
|
25 |
install: |
install: |
26 |
sudo perl ./configure.pl |
sudo perl ./configure.pl |
27 |
|
|
34 |
sudo $(target)/etc/backuppc stop |
sudo $(target)/etc/backuppc stop |
35 |
|
|
36 |
install-etc: |
install-etc: |
37 |
test -d $(target)/etc || cp -r etc $(target) && chmod 755 $(target)/etc/backuppc |
test -d $(target)/etc || sudo cp -r etc $(target) && sudo chmod 755 $(target)/etc/backuppc |
38 |
|
|
39 |
update: |
update: |
40 |
sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb |
sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb |
41 |
|
|
42 |
index: test |
index: test |
43 |
sudo rm -Rf /data/backuppc/data/casket || true |
sudo rm -Rf /data/backuppc/data/casket || true |
44 |
sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -i |
sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -j |
45 |
|
|
46 |
xls: |
xls: test |
47 |
sudo -u backuppc /data/backuppc/bin/BackupPC_xls_report && cp -vf /tmp/report.xls ~/public_html/ |
sudo -u backuppc /data/backuppc/bin/BackupPC_xls_report |
48 |
|
which gnumeric && gnumeric /tmp/report.xls || cp -vf /tmp/report.xls ~/public_html/ |
49 |
|
|
50 |
asa: |
asa: |
51 |
rm -Rf $(tmp) |
rm -Rf $(tmp) |
53 |
rsync -rav $(tmp) 10.210.99.1:backuppc-svn/ |
rsync -rav $(tmp) 10.210.99.1:backuppc-svn/ |
54 |
rm -Rf $(tmp) |
rm -Rf $(tmp) |
55 |
|
|
56 |
|
html: |
57 |
|
test ! -z "`svn2html.pl`" && svn update && svn2html.pl > doc/Changes.html |
58 |
|
|
59 |
profile: test |
profile: test |
60 |
test -e tmon.out || touch tmon.out |
test -e tmon.out || touch tmon.out |
61 |
sudo chown backuppc tmon.out |
sudo chown backuppc tmon.out |
71 |
DBI_PROFILE=2 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt) 2>&1 | tee -a $(profile_file) |
DBI_PROFILE=2 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt) 2>&1 | tee -a $(profile_file) |
72 |
mv $(profile_file) profile.`perl -e 'my @p = glob("profile.[0-9]*"); print scalar @p + 1'` |
mv $(profile_file) profile.`perl -e 'my @p = glob("profile.[0-9]*"); print scalar @p + 1'` |
73 |
|
|
74 |
|
tar: test |
75 |
|
psql -c "delete from backup_parts" backuppc |
76 |
|
sudo -u backuppc /data/backuppc/bin/BackupPC_tarIncCreate -h llin -s /etc -n 10 -d -v |
77 |
|
|
78 |
|
inc: test |
79 |
|
sudo -u backuppc /data/backuppc/bin/BackupPC_incPartsUpdate -c -d |
80 |
|
|
81 |
|
burn: test |
82 |
|
sudo /data/backuppc/bin/BackupPC_burnArchiveCLI |