This file is indexed.

/usr/share/amanda/template.d/amanda-CAStor.conf is in amanda-server 1:3.5.1-1build2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
org "DailySet1"	# your organization name for reports
mailto "backup"	# space separated list of operators at your site
dumpcycle 1 week	# the number of days in the normal dump cycle
runspercycle 5          # the number of amdump runs in dumpcycle days
			# (1 week * 5 amdump runs per week -- just weekdays)
tapecycle 10 tapes	# the number of tapes in rotation
			# 1 week (dumpcycle) times 5 tapes per week (just
			# the weekdays) plus a few to handle errors that
			# need amflush and so we do not overwrite the full
			# backups performed at the beginning of the previous
			# cycle
runtapes 1		# number of tapes to be used in a single run of amdump

# CAStor changer definition; based on S3 changer.
#
# Parameter "tpchanger":
#   Replace <BUCKET> and <PREFIX> with your own values.
#   Configure as many slots as tape cycles ("tapecycle").
#
# Device properties:
#   STORAGE_API -- Set to "CASTOR" to use the CAStor storage back-end.
#
#   S3_HOST -- The DNS round-robin name or name/IP or a cluster node that will
#   be used as the primary access node (PAN). An optional ":{port}" suffix can
#   be included if necessary.
#
#   S3_SSL -- Set to "YES" or "NO" to control the use of SSL when communicating
#   with the cluster. Your storage cluster must have an SSL front-end
#   configured in order to use SSL from the client. SSL implies port 443.
#
#   TENANT_NAME -- The name of the storage tenant domain within the CAStor
#   cluster. This parameter is optional and S3_HOST will be used as the tenant
#   domain if this paramter is not set.
#
#   USERNAME and PASSWORD -- These are the login credentials for the storage
#   operations. These must be defined even if their values are not used.
#
#   REPS -- This controls the number of replicas for data objects when using
#   the CAStor storage back-end. This value is substituted directly into the
#   content header: "lifepoint: [] reps=%s". The default is "2".
#
#   REPS_BUCKET -- This controls the number of replicas for an automatically
#   created bucket when using the CAStor storage back-end. The default is "4".
#
#   CREATE_BUCKET -- Set to "YES" to automatically create the bucket if it
#   does not exist. Set to "NO" to prevent this.
#
define changer my_castor {
    tpchanger "chg-multi:s3:<BUCKET>/<PREFIX>/slot{01,02,03,04,05,06,07,08,09,10}/"

    device-property "STORAGE_API" "CASTOR"
    device-property "S3_HOST" "<CLUSTER>"
    device-property "S3_SSL" "NO"
    device-property "TENANT_NAME" "<DOMAIN>"
    device-property "USERNAME" "<USER>"
    device-property "PASSWORD" "<PASSWORD>"
    device-property "REPS" "<REPS>"
    device-property "REPS_BUCKET" "<REPS>"
    device-property "CREATE_BUCKET" "YES"
    device-property "NB_THREADS_BACKUP" "3"
    device-property "NB_THREADS_RECOVERY" "3"
}

# CAStor tape type definition
#
# Parameters:

#   "length" -- Set to the maximum size of the backup run. This can be
#   arbitarily large if you wish for the backup to run until complete.
#
#   "blocksize" -- Set to the size of the objects stored in the cluster.
#
define tapetype CASTOR {
    comment "CAStor pseudo-tape"
    length 10240 gigabytes
    part_size 100 gigabytes
    part_cache_type none
    blocksize 512 megabytes
}

tpchanger "my_castor"
tapetype CASTOR

autolabel "DailySet1-%%%%" empty
labelstr "^DailySet1-[0-9][0-9]*$"	# label constraint regex: all tapes must match

dtimeout 1800		# number of idle seconds before a dump is aborted.
ctimeout 30		# maximum number of seconds that amcheck waits
			# for each client host
etimeout 300		# number of seconds per filesystem for estimates.

define dumptype global {
        comment "Global definitions"
        auth "bsdtcp"
}

#define application-tool and dumptype for the amgtar application
define application-tool app_amgtar {
    comment "amgtar"
    plugin  "amgtar"
    #property "GNUTAR-PATH" "/path/to/gtar"
    #property "GNUTAR-LISTDIR" "/path/to/gnutar_list_dir"
}

define dumptype gui-base {
        global
        program "APPLICATION"
        application "app_amgtar"
        comment "gui base dumptype dumped with tar"
        compress none
        index yes
}

includefile "./advanced.conf"
includefile "/etc/amanda/template.d/dumptypes"
includefile "/etc/amanda/template.d/tapetypes"