/[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 234 - (hide annotations)
Tue Nov 8 20:24:45 2005 UTC (18 years, 6 months ago) by dpavlin
File size: 2076 byte(s)
 r8745@llin:  dpavlin | 2005-11-08 21:24:32 +0100
 re-wrote creation of tar archives. gzip is now called directly from
 BackupPC_tarIncCreate. It uses multiple pipes to create .tar.gz and md5sum
 on the fly, supports MaxArchiveFileSize as maximum size of UNCOMPRESSED
 archive (to facilitate decompression on filesystems with limited file size).
 
 For that, there are two split implementations:
 - one which splits multiple files (smaller than MaxArchiveFileSize) into
   multiple tar archives
 - other which splits individual files (larger than MaxArchiveFileSize) into
   multiple tar archives (dir is named like file, and files are named as
   part number)

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     install:
16     sudo perl ./configure.pl
17    
18     start:
19 dpavlin 28 #sudo -u backuppc /data/backuppc/bin/BackupPC -d
20 dpavlin 33 sudo $(target)/etc/backuppc start
21 dpavlin 10
22     stop:
23 dpavlin 28 #sudo -u backuppc killall BackupPC && sleep 1 || true
24 dpavlin 33 sudo $(target)/etc/backuppc stop
25 dpavlin 21
26 dpavlin 33 install-etc:
27 dpavlin 106 test -d $(target)/etc || sudo cp -r etc $(target) && sudo chmod 755 $(target)/etc/backuppc
28 dpavlin 33
29 dpavlin 61 update:
30     sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb
31    
32 dpavlin 81 index: test
33 dpavlin 98 sudo rm -Rf /data/backuppc/data/casket || true
34 dpavlin 131 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -j
35 dpavlin 81
36 dpavlin 108 xls: test
37 dpavlin 111 sudo -u backuppc /data/backuppc/bin/BackupPC_xls_report
38     which gnumeric && gnumeric /tmp/report.xls || cp -vf /tmp/report.xls ~/public_html/
39 dpavlin 69
40 dpavlin 21 asa:
41     rm -Rf $(tmp)
42     svn export . $(tmp)
43     rsync -rav $(tmp) 10.210.99.1:backuppc-svn/
44     rm -Rf $(tmp)
45 dpavlin 45
46 dpavlin 115 html:
47     test ! -z "`svn2html.pl`" && svn update && svn2html.pl > doc/Changes.html
48    
49 dpavlin 47 profile: test
50 dpavlin 45 test -e tmon.out || touch tmon.out
51     sudo chown backuppc tmon.out
52 dpavlin 56 dropdb $(db) || echo "skip drop db"
53     createdb $(db)
54 dpavlin 46 date > $(profile_file)
55     echo "## NORMAL RUN" >> $(profile_file)
56 dpavlin 56 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -c $(profile_opt) | tee -a $(profile_file)
57 dpavlin 46 echo "## DProf RUN" >> $(profile_file)
58 dpavlin 56 sudo -u backuppc perl -d:DProf /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt)
59 dpavlin 46 dprofpp 2>&1 | tee -a $(profile_file)
60     echo "## DBI_PROFILE RUN" >> $(profile_file)
61 dpavlin 56 DBI_PROFILE=2 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt) 2>&1 | tee -a $(profile_file)
62 dpavlin 54 mv $(profile_file) profile.`perl -e 'my @p = glob("profile.[0-9]*"); print scalar @p + 1'`
63 dpavlin 46
64 dpavlin 234 tar: test
65     sudo -u backuppc /data/backuppc/bin/BackupPC_tarIncCreate -h llin -s /etc -n 10 -d -v
66    
67 dpavlin 157 inc: test
68 dpavlin 217 sudo -u backuppc /data/backuppc/bin/BackupPC_incPartsUpdate -c -d
69 dpavlin 157
70 dpavlin 199 burn: test
71     sudo /data/backuppc/bin/BackupPC_burnArchiveCLI

  ViewVC Help
Powered by ViewVC 1.1.26