/[BackupPC]/trunk/Makefile
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 359 - (hide annotations)
Fri Apr 28 09:07:38 2006 UTC (18 years ago) by dpavlin
File size: 2763 byte(s)
 r10861@llin:  dpavlin | 2006-04-28 11:06:44 +0200
 better restore target (cleanup restore host before beginning)

1 dpavlin 21 tmp=/tmp/backuppc-svn/
2 dpavlin 33 target=/data/backuppc/
3 dpavlin 56 profile_opt=
4 dpavlin 46 profile_file=profile
5 dpavlin 56 db=backuppc
6 dpavlin 21
7 dpavlin 10 all:
8     @echo "make install to install BackupPC using sudo"
9    
10 dpavlin 11 test: stop reinstall start
11    
12     reinstall:
13 dpavlin 33 sudo perl ./configure.pl --batch --config-path=$(target)/data/conf/config.pl
14 dpavlin 10
15 dpavlin 245 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 dpavlin 249 cd custom/ && find . -type f | grep -v '.svn' | sudo cpio -puV /data/backuppc-agi/
19 dpavlin 245 sudo /etc/init.d/backuppc-agi start
20    
21     qc:
22     sudo /etc/init.d/backuppc-qc stop
23     sudo perl ./configure.pl --batch --config-path=/data/backuppc-qc/data/conf/config.pl
24 dpavlin 249 cd custom/ && find . -type f | grep -v '.svn' | sudo cpio -puV /data/backuppc-qc/
25 dpavlin 245 sudo /etc/init.d/backuppc-qc start
26    
27 dpavlin 10 install:
28     sudo perl ./configure.pl
29    
30     start:
31 dpavlin 28 #sudo -u backuppc /data/backuppc/bin/BackupPC -d
32 dpavlin 33 sudo $(target)/etc/backuppc start
33 dpavlin 10
34     stop:
35 dpavlin 28 #sudo -u backuppc killall BackupPC && sleep 1 || true
36 dpavlin 33 sudo $(target)/etc/backuppc stop
37 dpavlin 21
38 dpavlin 33 install-etc:
39 dpavlin 106 test -d $(target)/etc || sudo cp -r etc $(target) && sudo chmod 755 $(target)/etc/backuppc
40 dpavlin 33
41 dpavlin 61 update:
42     sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb
43    
44 dpavlin 81 index: test
45 dpavlin 98 sudo rm -Rf /data/backuppc/data/casket || true
46 dpavlin 131 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -j
47 dpavlin 81
48 dpavlin 108 xls: test
49 dpavlin 111 sudo -u backuppc /data/backuppc/bin/BackupPC_xls_report
50     which gnumeric && gnumeric /tmp/report.xls || cp -vf /tmp/report.xls ~/public_html/
51 dpavlin 69
52 dpavlin 115 html:
53     test ! -z "`svn2html.pl`" && svn update && svn2html.pl > doc/Changes.html
54    
55 dpavlin 47 profile: test
56 dpavlin 45 test -e tmon.out || touch tmon.out
57     sudo chown backuppc tmon.out
58 dpavlin 56 dropdb $(db) || echo "skip drop db"
59     createdb $(db)
60 dpavlin 46 date > $(profile_file)
61     echo "## NORMAL RUN" >> $(profile_file)
62 dpavlin 56 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -c $(profile_opt) | tee -a $(profile_file)
63 dpavlin 46 echo "## DProf RUN" >> $(profile_file)
64 dpavlin 56 sudo -u backuppc perl -d:DProf /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt)
65 dpavlin 46 dprofpp 2>&1 | tee -a $(profile_file)
66     echo "## DBI_PROFILE RUN" >> $(profile_file)
67 dpavlin 56 DBI_PROFILE=2 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt) 2>&1 | tee -a $(profile_file)
68 dpavlin 54 mv $(profile_file) profile.`perl -e 'my @p = glob("profile.[0-9]*"); print scalar @p + 1'`
69 dpavlin 46
70 dpavlin 234 tar: test
71 dpavlin 235 psql -c "delete from backup_parts" backuppc
72 dpavlin 252 sudo -u backuppc /data/backuppc/bin/BackupPC_tarIncCreate -h llin -s /etc -n 10 -v -f -d
73 dpavlin 234
74 dpavlin 157 inc: test
75 dpavlin 328 sudo -u backuppc /data/backuppc/bin/BackupPC_incPartsUpdate -c
76 dpavlin 157
77 dpavlin 199 burn: test
78 dpavlin 336 psql -c "delete from archive_burned" backuppc
79 dpavlin 199 sudo /data/backuppc/bin/BackupPC_burnArchiveCLI
80 dpavlin 343
81 dpavlin 359 cleanup-restore:
82     sudo -u backuppc rm -Rf /data/backuppc/data/pc/restore/
83    
84     restore: cleanup-restore test
85 dpavlin 343 sleep 1
86     sudo -u backuppc ./bin/BackupPC_recover_from_increments /data/backuppc/temp/llin_etc*

  ViewVC Help
Powered by ViewVC 1.1.26