You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
122 lines
4.4 KiB
122 lines
4.4 KiB
Index: manpages/Makefile.in |
|
--- manpages/Makefile.in.orig 2010-01-25 08:56:28 +0100 |
|
+++ manpages/Makefile.in 2010-01-25 19:23:50 +0100 |
|
@@ -21,23 +21,21 @@ |
|
install: |
|
$(MKDIR) $(DESTDIR)/$(mandir)/man8 |
|
for I in ${MAN8}; \ |
|
- do ($(RMF) $$I.gz; gzip -c $$I >$$I.gz; \ |
|
- $(INSTALL_DATA) $$I.gz $(DESTDIR)$(mandir)/man8/$$I.gz; \ |
|
- rm -f $$I.gz); \ |
|
+ do \ |
|
+ $(INSTALL_DATA) $$I $(DESTDIR)$(mandir)/man8/$$I; \ |
|
done |
|
$(MKDIR) $(DESTDIR)/$(mandir)/man1 |
|
for I in ${MAN1}; \ |
|
- do ($(RMF) $$I.gz; gzip -c $$I >$$I.gz; \ |
|
- $(INSTALL_DATA) $$I.gz $(DESTDIR)$(mandir)/man1/$$I.gz; \ |
|
- rm -f $$I.gz); \ |
|
+ do \ |
|
+ $(INSTALL_DATA) $$I $(DESTDIR)$(mandir)/man1/$$I; \ |
|
done |
|
|
|
uninstall: |
|
for I in ${MAN8}; \ |
|
- do (rm -f $(DESTDIR)$(mandir)/man8/$$I.gz); \ |
|
+ do (rm -f $(DESTDIR)$(mandir)/man8/$$I); \ |
|
done |
|
for I in ${MAN1}; \ |
|
- do (rm -f $(DESTDIR)$(mandir)/man1/$$I.gz); \ |
|
+ do (rm -f $(DESTDIR)$(mandir)/man1/$$I); \ |
|
done |
|
|
|
clean: |
|
Index: scripts/bacula.in |
|
--- scripts/bacula.in.orig 2010-01-25 08:56:28 +0100 |
|
+++ scripts/bacula.in 2010-01-25 19:23:50 +0100 |
|
@@ -20,30 +20,36 @@ |
|
MALLOC_CHECK_=0 |
|
export MALLOC_CHECK_ |
|
|
|
+action=$1 |
|
+debug=$2 |
|
+[ -n "$3" ] && enable_dir=$3 || enable_dir=yes |
|
+[ -n "$4" ] && enable_sd=$4 || enable_sd=yes |
|
+[ -n "$5" ] && enable_fd=$5 || enable_fd=yes |
|
+ |
|
case "$1" in |
|
start) |
|
- [ -x ${SCRIPTDIR}/bacula-ctl-sd ] && ${SCRIPTDIR}/bacula-ctl-sd $1 $2 |
|
- [ -x ${SCRIPTDIR}/bacula-ctl-fd ] && ${SCRIPTDIR}/bacula-ctl-fd $1 $2 |
|
- [ -x ${SCRIPTDIR}/bacula-ctl-dir ] && ${SCRIPTDIR}/bacula-ctl-dir $1 $2 |
|
+ [ "$enable_sd" = "yes" ] && [ -x ${SCRIPTDIR}/bacula-ctl-sd ] && ${SCRIPTDIR}/bacula-ctl-sd $1 $2 |
|
+ [ "$enable_fd" = "yes" ] && [ -x ${SCRIPTDIR}/bacula-ctl-fd ] && ${SCRIPTDIR}/bacula-ctl-fd $1 $2 |
|
+ [ "$enable_dir" = "yes" ] && [ -x ${SCRIPTDIR}/bacula-ctl-dir ] && ${SCRIPTDIR}/bacula-ctl-dir $1 $2 |
|
;; |
|
|
|
stop) |
|
# Stop the FD first so that SD will fail jobs and update catalog |
|
- [ -x ${SCRIPTDIR}/bacula-ctl-fd ] && ${SCRIPTDIR}/bacula-ctl-fd $1 $2 |
|
- [ -x ${SCRIPTDIR}/bacula-ctl-sd ] && ${SCRIPTDIR}/bacula-ctl-sd $1 $2 |
|
- [ -x ${SCRIPTDIR}/bacula-ctl-dir ] && ${SCRIPTDIR}/bacula-ctl-dir $1 $2 |
|
+ [ "$enable_fd" = "yes" ] && [ -x ${SCRIPTDIR}/bacula-ctl-fd ] && ${SCRIPTDIR}/bacula-ctl-fd $1 $2 |
|
+ [ "$enable_sd" = "yes" ] && [ -x ${SCRIPTDIR}/bacula-ctl-sd ] && ${SCRIPTDIR}/bacula-ctl-sd $1 $2 |
|
+ [ "$enable_dir" = "yes" ] && [ -x ${SCRIPTDIR}/bacula-ctl-dir ] && ${SCRIPTDIR}/bacula-ctl-dir $1 $2 |
|
;; |
|
|
|
restart) |
|
- $0 stop |
|
+ $0 stop $debug $enable_dir $enable_sd $enable_fd |
|
sleep 2 |
|
- $0 start |
|
+ $0 start $debug $enable_dir $enable_sd $enable_fd |
|
;; |
|
|
|
status) |
|
- [ -x ${SCRIPTDIR}/bacula-ctl-sd ] && ${SCRIPTDIR}/bacula-ctl-sd status |
|
- [ -x ${SCRIPTDIR}/bacula-ctl-fd ] && ${SCRIPTDIR}/bacula-ctl-fd status |
|
- [ -x ${SCRIPTDIR}/bacula-ctl-dir ] && ${SCRIPTDIR}/bacula-ctl-dir status |
|
+ [ "$enable_sd" = "yes" ] && [ -x ${SCRIPTDIR}/bacula-ctl-sd ] && ${SCRIPTDIR}/bacula-ctl-sd status |
|
+ [ "$enable_fd" = "yes" ] && [ -x ${SCRIPTDIR}/bacula-ctl-fd ] && ${SCRIPTDIR}/bacula-ctl-fd status |
|
+ [ "$enable_dir" = "yes" ] && [ -x ${SCRIPTDIR}/bacula-ctl-dir ] && ${SCRIPTDIR}/bacula-ctl-dir status |
|
;; |
|
|
|
*) |
|
Index: scripts/btraceback.in |
|
--- scripts/btraceback.in.orig 2010-01-25 08:56:28 +0100 |
|
+++ scripts/btraceback.in 2010-01-25 19:26:46 +0100 |
|
@@ -14,6 +14,9 @@ |
|
WD="$3" |
|
if test `uname -s` = SunOS ; then |
|
gcore -o ${WD}/${PNAME} $2 |
|
+fi |
|
+if test `uname -s` = SunOS && |
|
+ test -n `which dbx 2>/dev/null`; then |
|
dbx $1 $2 <@scriptdir@/btraceback.dbx >${WD}/bacula.$2.traceback 2>&1 |
|
cat ${WD}/bacula.$2.traceback \ |
|
| @sbindir@/bsmtp -h @smtp_host@ -f @dump_email@ -s "Bacula DBX traceback of ${PNAME}" @dump_email@ |
|
Index: src/dird/bacula-dir.conf.in |
|
--- src/dird/bacula-dir.conf.in.orig 2010-01-25 08:56:28 +0100 |
|
+++ src/dird/bacula-dir.conf.in 2010-01-25 19:23:50 +0100 |
|
@@ -29,7 +29,8 @@ |
|
Level = Incremental |
|
Client = @basename@-fd |
|
FileSet = "Full Set" |
|
- Schedule = "WeeklyCycle" |
|
+ #Schedule = "WeeklyCycle" |
|
+ Schedule = "NEVER" |
|
Storage = File |
|
Messages = Standard |
|
Pool = File |
|
@@ -123,6 +124,11 @@ |
|
} |
|
} |
|
|
|
+# This schedule can be used to disable automatic scheduling |
|
+Schedule { |
|
+ Name = NEVER |
|
+} |
|
+ |
|
# |
|
# When to do the backups, full backup on first sunday of the month, |
|
# differential (i.e. incremental since full) every other sunday,
|
|
|