diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2005-07-04 01:48:56 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2005-07-04 01:48:56 +0000 |
commit | 5987cfad9ec808a69a6a82d1be1db9d82cfde417 (patch) | |
tree | 3404234b11f7f3908e6bf88153d90992e4f360ee /app-backup/amanda/files | |
parent | only install 1 desktop file #97862 (diff) | |
download | gentoo-2-5987cfad9ec808a69a6a82d1be1db9d82cfde417.tar.gz gentoo-2-5987cfad9ec808a69a6a82d1be1db9d82cfde417.tar.bz2 gentoo-2-5987cfad9ec808a69a6a82d1be1db9d82cfde417.zip |
Moved from app-admin/amanda to app-backup/amanda.
Diffstat (limited to 'app-backup/amanda/files')
19 files changed, 281 insertions, 0 deletions
diff --git a/app-backup/amanda/files/amanda-2.4.5-4tb-holding-disk.patch b/app-backup/amanda/files/amanda-2.4.5-4tb-holding-disk.patch new file mode 100644 index 000000000000..f056e98cf808 --- /dev/null +++ b/app-backup/amanda/files/amanda-2.4.5-4tb-holding-disk.patch @@ -0,0 +1,12 @@ +diff -NuarwbB amanda-2.4.5.orig/common-src/statfs.c amanda-2.4.5/common-src/statfs.c +--- amanda-2.4.5.orig/common-src/statfs.c 1999-05-23 10:11:18.000000000 -0700 ++++ amanda-2.4.5/common-src/statfs.c 2005-06-08 13:12:58.000000000 -0700 +@@ -127,7 +127,7 @@ + # endif + #endif + +-#define scale(r,s) ( (r) == -1? -1 : (int)((r)*(double)(s)/1024.0) ) ++#define scale(r,s) ( (r) == -1? -1 : (long)((r)*(double)(s)/1024.0) ) + + int get_fs_stats(dir, sp) + char *dir; diff --git a/app-backup/amanda/files/amanda-2.4.5-amverify-loop-detect.patch b/app-backup/amanda/files/amanda-2.4.5-amverify-loop-detect.patch new file mode 100644 index 000000000000..bbf358af6d13 --- /dev/null +++ b/app-backup/amanda/files/amanda-2.4.5-amverify-loop-detect.patch @@ -0,0 +1,22 @@ +From upstream. http://groups.yahoo.com/group/amanda-hackers/message/4510 +--- amanda-2.4.5/server-src/amverify.sh.in.orig 2005-06-08 13:30:11.000000000 -0700 ++++ amanda-2.4.5/server-src/amverify.sh.in 2005-06-08 13:32:27.000000000 -0700 +@@ -425,14 +425,16 @@ + fi + RESULT=`$AMRESTORE -h -p $DEVICE 2> $TEMP/amrestore.out \ + | doonefile 2> $TEMP/onefile.errors` ++ # save previous filename to detect looping ++ FILE_prev="$FILE" + FILE=`grep restoring $TEMP/amrestore.out \ + | sed 's/^.*restoring //'` + EOF=`grep "reached end of tape" $TEMP/amrestore.out` + EOI=`grep "reached end of information" $TEMP/amrestore.out` + # amrestore: 0: restoring sundae._mnt_sol1_usr.19961127.1 +- if [ X"$FILE" != X"" -a X"$RESULT" = X"0" ]; then ++ if [ X"$FILE" != X"" -a X"$FILE" != X"$FILE_prev" -a X"$RESULT" = X"0" ]; then + report "Checked $FILE" +- elif [ X"$FILE" != X"" -a X"$RESULT" = X"999" ]; then ++ elif [ X"$FILE" != X"" -a X"$FILE" != X"$FILE_prev" -a X"$RESULT" = X"999" ]; then + report "Skipped $FILE (`cat $TEMP/errors`)" + elif [ -n "$EOF" ]; then + report "End-of-Tape detected." diff --git a/app-backup/amanda/files/amanda-2.4.5-samba-printf.patch b/app-backup/amanda/files/amanda-2.4.5-samba-printf.patch new file mode 100644 index 000000000000..01dca14ca092 --- /dev/null +++ b/app-backup/amanda/files/amanda-2.4.5-samba-printf.patch @@ -0,0 +1,11 @@ +From upstream. See http://groups.yahoo.com/group/amanda-hackers/message/4511 +--- amanda-2.4.5/client-src/sendsize.c.orig 2005-06-08 13:28:10.000000000 -0700 ++++ amanda-2.4.5/client-src/sendsize.c 2005-06-08 13:28:34.000000000 -0700 +@@ -557,6 +557,7 @@ + #ifdef SAMBA_CLIENT + if (est->amdevice[0] == '/' && est->amdevice[1] == '/') + dbprintf(("%s: Can't use CALCSIZE for samba estimate: %s %s\n", ++ debug_prefix_time(NULL), + est->amname, est->dirname)); + else + #endif diff --git a/app-backup/amanda/files/amanda-amandahosts b/app-backup/amanda/files/amanda-amandahosts new file mode 100644 index 000000000000..a86ab8a3f5ab --- /dev/null +++ b/app-backup/amanda/files/amanda-amandahosts @@ -0,0 +1,8 @@ +# vim: ts=4 sts=4 sw=4 noexpandtab: +# Machine-name for those hosts which are permitted to back up (fully-qualified +# is best). An entry in /etc/hosts adds fail-safe against DNS death :-) +# | +# | permitted user-name +# | | + +__AMANDA_SERVER__ __AMANDA_USER_NAME__ diff --git a/app-backup/amanda/files/amanda-cron b/app-backup/amanda/files/amanda-cron new file mode 100644 index 000000000000..a5524dc2e3a1 --- /dev/null +++ b/app-backup/amanda/files/amanda-cron @@ -0,0 +1,13 @@ +#!/bin/sh + +# This is a sample cron job to kick off backups with amanda. + +# Run the tape tests on DailySet first, and if ok, then kick off backups +# Mail error reports to root + +# Ensure TAPE is set to your tape drive for mt to work, ie. TAPE="/dev/st0" + +ADMIN_EMAIL="root@localhost" + +/usr/sbin/amcheck -t -m -M"${ADMIN_EMAIL}" __AMANDA_CONFIG_NAME__ && \ +( /usr/sbin/amdump __AMANDA_CONFIG_NAME__ ; /usr/sbin/mt eject ) diff --git a/app-backup/amanda/files/amanda-devfs b/app-backup/amanda/files/amanda-devfs new file mode 100644 index 000000000000..f02eb3ffc477 --- /dev/null +++ b/app-backup/amanda/files/amanda-devfs @@ -0,0 +1,7 @@ +# raw access to partitions for amanda +#REGISTER ^scsi/host.*/bus.*/target.*/lun.*/part[0-9] PERMISSIONS root.disk 660" +#REGISTER ^ide/host.*/bus.*/target.*/lun.*/part[0-9] PERMISSIONS root.disk 660" + +# allow amanda to have access to tape changers +#REGISTER ^scsi/host.*/bus.*/target.*/lun.*/generic PERMISSIONS root.disk 660 + diff --git a/app-backup/amanda/files/amanda-inetd.amanda.sample b/app-backup/amanda/files/amanda-inetd.amanda.sample new file mode 100644 index 000000000000..0314e9b87b04 --- /dev/null +++ b/app-backup/amanda/files/amanda-inetd.amanda.sample @@ -0,0 +1,3 @@ +amanda dgram udp wait amanda /usr/libexec/amandad amandad +amandaidx stream tcp nowait amanda /usr/libexec/amindexd amindexd +amidxtape stream tcp nowait amanda /usr/libexec/amidxtaped amidxtaped diff --git a/app-backup/amanda/files/amanda-profile b/app-backup/amanda/files/amanda-profile new file mode 100644 index 000000000000..d8e132bf10f8 --- /dev/null +++ b/app-backup/amanda/files/amanda-profile @@ -0,0 +1 @@ +export PATH=/sbin:/usr/sbin:/usr/libexec:${PATH} diff --git a/app-backup/amanda/files/amanda-xinetd b/app-backup/amanda/files/amanda-xinetd new file mode 100644 index 000000000000..2a52e591bc87 --- /dev/null +++ b/app-backup/amanda/files/amanda-xinetd @@ -0,0 +1,48 @@ +# These are the services needed for amanda. +# Default is to talk to localhost only unless +# AMANDA_SERVER was specified at build time. + +service amanda +{ + socket_type = dgram + protocol = udp + wait = yes + user = __AMANDA_USER_NAME__ + group = __AMANDA_GROUP_NAME__ + groups = yes + server = /usr/libexec/amandad + # You need to ensure this points to your Amanda server! + # Don't just remove it! + only_from = __AMANDA_SERVER__ + disable = yes +} + +service amandaidx +{ + socket_type = stream + protocol = tcp + wait = no + user = __AMANDA_USER_NAME__ + group = __AMANDA_GROUP_NAME__ + groups = yes + server = /usr/libexec/amindexd + # You need to ensure this points to your Amanda server! + # Don't just remove it! + only_from = __AMANDA_SERVER__ + disable = yes +} + +service amidxtape +{ + socket_type = stream + protocol = tcp + wait = no + user = __AMANDA_USER_NAME__ + group = __AMANDA_GROUP_NAME__ + groups = yes + server = /usr/libexec/amidxtaped + # You need to ensure this points to your Amanda server! + # Don't just remove it! + only_from = __AMANDA_SERVER__ + disable = yes +} diff --git a/app-backup/amanda/files/digest-amanda-2.4.4-r3 b/app-backup/amanda/files/digest-amanda-2.4.4-r3 new file mode 100644 index 000000000000..0744e0686521 --- /dev/null +++ b/app-backup/amanda/files/digest-amanda-2.4.4-r3 @@ -0,0 +1 @@ +MD5 1f5f0c636707994eb7b5e74b19528323 amanda-2.4.4.tar.gz 1220934 diff --git a/app-backup/amanda/files/digest-amanda-2.4.4_p2 b/app-backup/amanda/files/digest-amanda-2.4.4_p2 new file mode 100644 index 000000000000..322714ecd21e --- /dev/null +++ b/app-backup/amanda/files/digest-amanda-2.4.4_p2 @@ -0,0 +1 @@ +MD5 95f772203801999bd4b96606859f8910 amanda-2.4.4p2.tar.gz 1263075 diff --git a/app-backup/amanda/files/digest-amanda-2.4.4_p2-r1 b/app-backup/amanda/files/digest-amanda-2.4.4_p2-r1 new file mode 100644 index 000000000000..322714ecd21e --- /dev/null +++ b/app-backup/amanda/files/digest-amanda-2.4.4_p2-r1 @@ -0,0 +1 @@ +MD5 95f772203801999bd4b96606859f8910 amanda-2.4.4p2.tar.gz 1263075 diff --git a/app-backup/amanda/files/digest-amanda-2.4.4_p2-r2 b/app-backup/amanda/files/digest-amanda-2.4.4_p2-r2 new file mode 100644 index 000000000000..322714ecd21e --- /dev/null +++ b/app-backup/amanda/files/digest-amanda-2.4.4_p2-r2 @@ -0,0 +1 @@ +MD5 95f772203801999bd4b96606859f8910 amanda-2.4.4p2.tar.gz 1263075 diff --git a/app-backup/amanda/files/digest-amanda-2.4.4_p3 b/app-backup/amanda/files/digest-amanda-2.4.4_p3 new file mode 100644 index 000000000000..8437537c8cb4 --- /dev/null +++ b/app-backup/amanda/files/digest-amanda-2.4.4_p3 @@ -0,0 +1 @@ +MD5 e1e87cb71865ccc1add2350eec357f89 amanda-2.4.4p3.tar.gz 1383528 diff --git a/app-backup/amanda/files/digest-amanda-2.4.5 b/app-backup/amanda/files/digest-amanda-2.4.5 new file mode 100644 index 000000000000..ad4726a140ef --- /dev/null +++ b/app-backup/amanda/files/digest-amanda-2.4.5 @@ -0,0 +1 @@ +MD5 1960b7875424e412d042bc92a1548d7f amanda-2.4.5.tar.gz 1541761 diff --git a/app-backup/amanda/files/example_amanda.conf b/app-backup/amanda/files/example_amanda.conf new file mode 100644 index 000000000000..947625e8ebbc --- /dev/null +++ b/app-backup/amanda/files/example_amanda.conf @@ -0,0 +1,44 @@ +# type "man amanda" + +org "example" +mailto "root@localhost" + +dumpcycle 7 +runspercycle -1 +tapecycle 7 + +dumpuser "amanda" +printer "lp" + +#tpchanger "chg-manual" +tapedev "/dev/nst0" + +runtapes 1 +labelstr "^EXAMPLE-[0-9][0-9]*$" +tapetype DDS4-PRINT + +ctimeout 60 +dtimeout 3600 +etimeout 600 + +netusage 2000 +inparallel 10 + +dumporder "tttTTTTTTT" +maxdumps 10 +bumpsize 10 +bumpmult 1.5 +bumpdays 1 + +diskfile "/etc/amanda/example/disklist" +infofile "/etc/amanda/example/curinfo" +logdir "/etc/amanda/example" +indexdir "/etc/amanda/example/index" +tapelist "tapelist" + +tapebufs 20 +reserve 100 +autoflush off + +includefile "/etc/amanda/global.conf" + diff --git a/app-backup/amanda/files/example_disklist b/app-backup/amanda/files/example_disklist new file mode 100644 index 000000000000..76062519bbb4 --- /dev/null +++ b/app-backup/amanda/files/example_disklist @@ -0,0 +1,2 @@ +localhost hda1 normal local +localhost hda3 normal local
\ No newline at end of file diff --git a/app-backup/amanda/files/example_global.conf b/app-backup/amanda/files/example_global.conf new file mode 100644 index 000000000000..728739850940 --- /dev/null +++ b/app-backup/amanda/files/example_global.conf @@ -0,0 +1,78 @@ +holdingdisk hd1 { + comment "main holding disk" + directory "/tmp/amanda/dumps" + use -1 Gb + chunksize 500 Mb +} + +define dumptype normal { + auth BSD + comment "Normal backup, compression" + comprate 0.50, 0.50 + compress client best + index yes + priority high + program "GNUTAR" + record yes + strategy STANDARD + holdingdisk yes +} + +define dumptype compress-server { + auth BSD + comment "Normal backup, compression" + comprate 0.50, 0.50 + compress server best + index yes + priority high + program "GNUTAR" + record yes + strategy STANDARD + holdingdisk yes +} + +define dumptype normal-no_hold { + normal + holdingdisk no +} + +define tapetype DDS4 { + comment "Seagate Scorpion 40" + length 16432 mbytes + filemark 0 kbytes + speed 2267 kps +} + +define tapetype DDS4-PRINT { + comment "Seagate Scorpion 40 with printer" + length 16432 mbytes + filemark 0 kbytes + speed 2267 kps + lbl-templ "/etc/amanda/lbl/DIN-A4.ps" +} + +define tapetype DDS2 { + comment "HP DAT C1533A" + length 1845 mbytes + filemark 0 kbytes + speed 480 kps +} + +define tapetype DDS1 { + comment "HP DAT HP35480A" + length 1845 mbytes + filemark 32 kbytes + speed 174 kps +} + +define interface local { + comment "local disk" + use 4000 kbps +} + +define interface eth1 { + comment "100 Mbps ethernet" + use 1000 kbps +} + + diff --git a/app-backup/amanda/files/patch-tar-1.14.90 b/app-backup/amanda/files/patch-tar-1.14.90 new file mode 100644 index 000000000000..2d7bd53c1260 --- /dev/null +++ b/app-backup/amanda/files/patch-tar-1.14.90 @@ -0,0 +1,26 @@ +diff -ru amanda-2.4.4p3/configure amanda-2.4.4p3-new/configure +--- amanda-2.4.4p3/configure 2004-06-22 07:41:55.000000000 -0500 ++++ amanda-2.4.4p3-new/configure 2004-11-20 12:49:12.998686008 -0600 +@@ -8802,7 +8802,7 @@ + + if test ! -z "$GNUTAR"; then + case "`\"$GNUTAR\" --version 2>&1`" in +- *GNU*tar* | *Free*paxutils* ) ++ *GNU*tar* | *Free*paxutils* | *tar\ \(tar\)\ 1.14.90* ) + + cat >>confdefs.h <<_ACEOF + #define GNUTAR "$GNUTAR" +diff -ru amanda-2.4.4p3/configure.in amanda-2.4.4p3-new/configure.in +--- amanda-2.4.4p3/configure.in 2004-06-22 07:41:30.000000000 -0500 ++++ amanda-2.4.4p3-new/configure.in 2004-11-20 12:50:15.082247872 -0600 +@@ -1284,7 +1284,7 @@ + AC_PATH_PROGS(GNUTAR,gtar gnutar tar,,$LOCSYSPATH) + if test ! -z "$GNUTAR"; then + case "`\"$GNUTAR\" --version 2>&1`" in +- *GNU*tar* | *Free*paxutils* ) ++ *GNU*tar* | *Free*paxutils* | *tar\ \(tar\)\ 1.14.90* ) + AC_DEFINE_UNQUOTED(GNUTAR,"$GNUTAR",[Define to the location of Gnu tar. ]) + ;; + *) + + |