# amanda-postgresql.conf - sample Amanda client configuration file for Oracle agent.
#
# This file normally goes in /usr/pkg/etc/amanda/amanda-client.conf.
#

conf "DailySet1"		# your config name

index_server "localhost"	# your amindexd server
tape_server  "localhost"	# your amidxtaped server
#tapedev      "tape:/dev/YOUR-TAPE-DEVICE-HERE"	# your tape device
			# if not set, Use configure or ask server.
			# if set to empty string "", ask server
			# amrecover will use the changer if set to the value
			# of 'amrecover_changer' in the server amanda.conf.

#   auth	- authentication scheme to use between server and client.
#		  Valid values are "bsd", "bsdudp", "bsdtcp", "krb5", "local",
#		  "rsh" and "ssh".  
#		  Default: [auth "bsdtcp"]
auth "bsdtcp"

# your ssh keys file if you use ssh auth
ssh_keys "/var/lib/amanda/.ssh/id_rsa_amrecover"

# Use /etc/amanda/pgpassfile for authentication credentials
# (Note: for PostgreSQL 8.0.x, you must use PG-PASSWORD instead)
# Should contain an appropriate line for foo (below).Example:
#   localhost:*:*:amandabackup:my_backup_password
# The file must be owned by the Amanda user with permissions 0600
property "PG-PASSFILE" "/etc/amanda/pgpassfile"

# For diskname "foo"...
#   Connect to localhost
property "foo-PG-HOST" "localhost"
#   Connect to port 5432 (PostgreSQL's default)
property "foo-PG-PORT" "5432"
#   Connect as user amandabackup (Note: must be a superuser)
property "foo-PG-USER" "amandabackup"
#   Connect to database template1 (exists by default)
property "foo-PG-DB" "template1"
#   Database's data directory
property "foo-PG-DATADIR" "/var/postgresql/data"
#   Directory that archive_command (in postgresql.conf) copies WAL files to.
#   For this example:
#   archive_command = 'test ! -f /var/postgresql/archive/%f && cp %p /var/postgresql/archive/%f'
property "foo-PG-ARCHIVEDIR" "/var/postgresql/archive"
