diff options
Diffstat (limited to 'app-backup/amanda/files')
-rw-r--r-- | app-backup/amanda/files/amanda-amandahosts-client-2.5.1_p3-r1 | 8 | ||||
-rw-r--r-- | app-backup/amanda/files/amanda-amandahosts-server-2.5.1_p3-r1 | 8 | ||||
-rw-r--r-- | app-backup/amanda/files/amanda-cron | 13 | ||||
-rw-r--r-- | app-backup/amanda/files/amanda-devfs | 7 | ||||
-rw-r--r-- | app-backup/amanda/files/amanda-inetd.amanda.sample-2.6.0_p2-r2 | 3 | ||||
-rw-r--r-- | app-backup/amanda/files/amanda-profile | 1 | ||||
-rw-r--r-- | app-backup/amanda/files/amanda-xinetd-2.6.1_p1-client | 19 | ||||
-rw-r--r-- | app-backup/amanda/files/amanda-xinetd-2.6.1_p1-server | 19 | ||||
-rw-r--r-- | app-backup/amanda/files/amanda.service | 10 | ||||
-rw-r--r-- | app-backup/amanda/files/amanda.service-r1 | 10 | ||||
-rw-r--r-- | app-backup/amanda/files/amanda.socket | 7 | ||||
-rw-r--r-- | app-backup/amanda/files/example_amanda.conf | 44 | ||||
-rw-r--r-- | app-backup/amanda/files/example_disklist-2.5.1_p3-r1 | 4 | ||||
-rw-r--r-- | app-backup/amanda/files/example_global.conf | 78 |
14 files changed, 231 insertions, 0 deletions
diff --git a/app-backup/amanda/files/amanda-amandahosts-client-2.5.1_p3-r1 b/app-backup/amanda/files/amanda-amandahosts-client-2.5.1_p3-r1 new file mode 100644 index 0000000..570a710 --- /dev/null +++ b/app-backup/amanda/files/amanda-amandahosts-client-2.5.1_p3-r1 @@ -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__ amdump diff --git a/app-backup/amanda/files/amanda-amandahosts-server-2.5.1_p3-r1 b/app-backup/amanda/files/amanda-amandahosts-server-2.5.1_p3-r1 new file mode 100644 index 0000000..4951d4a --- /dev/null +++ b/app-backup/amanda/files/amanda-amandahosts-server-2.5.1_p3-r1 @@ -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__ root amindexd amidxtaped diff --git a/app-backup/amanda/files/amanda-cron b/app-backup/amanda/files/amanda-cron new file mode 100644 index 0000000..a5524dc --- /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 0000000..f02eb3f --- /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-2.6.0_p2-r2 b/app-backup/amanda/files/amanda-inetd.amanda.sample-2.6.0_p2-r2 new file mode 100644 index 0000000..e2aa342 --- /dev/null +++ b/app-backup/amanda/files/amanda-inetd.amanda.sample-2.6.0_p2-r2 @@ -0,0 +1,3 @@ +amanda dgram udp wait amanda /usr/libexec/amanda/amandad amandad -auth=bsd amdump amindexd amidxtaped +amandaidx stream tcp nowait amanda /usr/libexec/amanda/amindexd amindexd -auth=bsd amdump amindexd amidxtaped +amidxtape stream tcp nowait amanda /usr/libexec/amanda/amidxtaped amidxtaped -auth=bsd amdump amindexd amidxtaped diff --git a/app-backup/amanda/files/amanda-profile b/app-backup/amanda/files/amanda-profile new file mode 100644 index 0000000..d8e132b --- /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-2.6.1_p1-client b/app-backup/amanda/files/amanda-xinetd-2.6.1_p1-client new file mode 100644 index 0000000..ed73c03 --- /dev/null +++ b/app-backup/amanda/files/amanda-xinetd-2.6.1_p1-client @@ -0,0 +1,19 @@ +# 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/amanda/amandad + server_args = -auth=bsd amdump + # 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/amanda-xinetd-2.6.1_p1-server b/app-backup/amanda/files/amanda-xinetd-2.6.1_p1-server new file mode 100644 index 0000000..269198e --- /dev/null +++ b/app-backup/amanda/files/amanda-xinetd-2.6.1_p1-server @@ -0,0 +1,19 @@ +# 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/amanda/amandad + server_args = -auth=bsd amdump amindexd 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/amanda.service b/app-backup/amanda/files/amanda.service new file mode 100644 index 0000000..b1f67db --- /dev/null +++ b/app-backup/amanda/files/amanda.service @@ -0,0 +1,10 @@ +[Unit] +Description=Amanda Backup System +After=local-fs.target + +[Service] +User=amanda +Group=amanda +ExecStart=/usr/libexec/amanda/amandad -auth=bsdtcp amdump +StandardInput=socket +StandardOutput=socket diff --git a/app-backup/amanda/files/amanda.service-r1 b/app-backup/amanda/files/amanda.service-r1 new file mode 100644 index 0000000..a605eb4 --- /dev/null +++ b/app-backup/amanda/files/amanda.service-r1 @@ -0,0 +1,10 @@ +[Unit] +Description=Amanda Backup System +After=local-fs.target + +[Service] +User=amanda +Group=amanda +ExecStart=/usr/libexec/amanda/amandad -auth=bsdtcp amdump amindexd amidxtaped +StandardInput=socket +StandardOutput=socket diff --git a/app-backup/amanda/files/amanda.socket b/app-backup/amanda/files/amanda.socket new file mode 100644 index 0000000..baf8079 --- /dev/null +++ b/app-backup/amanda/files/amanda.socket @@ -0,0 +1,7 @@ +[Unit] +Description=Amanda Socket +[Socket] +ListenStream=10080 +Accept=true +[Install] +WantedBy=sockets.target diff --git a/app-backup/amanda/files/example_amanda.conf b/app-backup/amanda/files/example_amanda.conf new file mode 100644 index 0000000..947625e --- /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-2.5.1_p3-r1 b/app-backup/amanda/files/example_disklist-2.5.1_p3-r1 new file mode 100644 index 0000000..73bf017 --- /dev/null +++ b/app-backup/amanda/files/example_disklist-2.5.1_p3-r1 @@ -0,0 +1,4 @@ +# Substitute <HOSTNAME> with the FQDN of your Amanda-client here. +# The usage of localhost will *break* your restores. +<HOSTNAME> hda1 normal local +<HOSTNAME> hda3 normal local diff --git a/app-backup/amanda/files/example_global.conf b/app-backup/amanda/files/example_global.conf new file mode 100644 index 0000000..7287398 --- /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 +} + + |