X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=Makefile;h=7f8206adf6c72ae8c0e4f60e8fbe0faa893017df;hb=09ea59634d10f59a731a411a3cd8e0d6b2d6cd59;hp=111ff513ba4da8b405fa827da3b3fc11bc70fee2;hpb=ca51c12c372eed6c4265b6a16a09ac4a221d5fd3;p=BackupPC.git diff --git a/Makefile b/Makefile index 111ff51..7f8206a 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,18 @@ test: stop reinstall start reinstall: sudo perl ./configure.pl --batch --config-path=$(target)/data/conf/config.pl +agi: + sudo /etc/init.d/backuppc-agi stop + sudo perl ./configure.pl --batch --config-path=/data/backuppc-agi/data/conf/config.pl + cd custom/ && find . -type f | grep -v '.svn' | sudo cpio -puV /data/backuppc-agi/ + sudo /etc/init.d/backuppc-agi start + +qc: + sudo /etc/init.d/backuppc-qc stop + sudo perl ./configure.pl --batch --config-path=/data/backuppc-qc/data/conf/config.pl + cd custom/ && find . -type f | grep -v '.svn' | sudo cpio -puV /data/backuppc-qc/ + sudo /etc/init.d/backuppc-qc start + install: sudo perl ./configure.pl @@ -31,16 +43,14 @@ update: index: test sudo rm -Rf /data/backuppc/data/casket || true - sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -i + sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -j xls: test - 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 + which gnumeric && gnumeric /tmp/report.xls || cp -vf /tmp/report.xls ~/public_html/ -asa: - rm -Rf $(tmp) - svn export . $(tmp) - rsync -rav $(tmp) 10.210.99.1:backuppc-svn/ - rm -Rf $(tmp) +html: + test ! -z "`svn2html.pl`" && svn update && svn2html.pl > doc/Changes.html profile: test test -e tmon.out || touch tmon.out @@ -57,3 +67,20 @@ profile: test DBI_PROFILE=2 sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -d $(profile_opt) 2>&1 | tee -a $(profile_file) mv $(profile_file) profile.`perl -e 'my @p = glob("profile.[0-9]*"); print scalar @p + 1'` +tar: test + psql -c "delete from backup_parts" backuppc + sudo -u backuppc /data/backuppc/bin/BackupPC_tarIncCreate -h llin -s /etc -n 10 -v -f -d + +inc: test + sudo -u backuppc /data/backuppc/bin/BackupPC_incPartsUpdate -c + +burn: test + psql -c "delete from archive_burned" backuppc + sudo /data/backuppc/bin/BackupPC_burnArchiveCLI + +clean-restore: + sudo -u backuppc rm -Rf /data/backuppc/data/pc/restore/ + +restore: clean-restore test + sleep 1 + sudo ./bin/BackupPC_recover_from_increments /data/backuppc/temp/llin_etc*