/[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

Contents of /trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.26