Skip to content

Instantly share code, notes, and snippets.

@mhahl
Last active August 29, 2015 14:08
Show Gist options
  • Save mhahl/5ce00214966e93599167 to your computer and use it in GitHub Desktop.
Save mhahl/5ce00214966e93599167 to your computer and use it in GitHub Desktop.
Create lst files for pdbackup
#!/bin/sh
if [[ $# -eq 0 ]];then
print "Usage: ./mklst.sh [instance | --all]"
print "\t./mklst.sh intra"
exit 1
fi
if [[ $1 == "--all" ]];then
for i in /opt/pdweb/www-*
do
ins=$(echo $i | cut -d "-" -f2 | tr -d "/")
echo "Creating 'lst/$ins.lst'"
sed "s/__TEMPLATE__/webseald-$ins/g" template.lst > "lst/$ins.lst"
done
exit
fi
echo "Creating 'lst/$1.lst'"
sed "s/__TEMPLATE__/webseald-$1/g" template.lst > "lst/$1.lst"
[UNIX FILES]
# fully qualified file names ; Required Flag (;R on the end - if file is required)
./opt/pdweb/.configure;R
./opt/pdweb/etc
./var/pdweb/keytab-default
[UNIX CONF FILES]
# configuration files that specify a file to include
# file:stanza:option
/opt/pdweb/etc/__TEMPLATE__.conf:server:server-root
/opt/pdweb/etc/__TEMPLATE__.conf:ldap:ssl-keyfile
/opt/pdweb/etc/__TEMPLATE__.conf:ssl:webseal-cert-keyfile
/opt/pdweb/etc/__TEMPLATE__.conf:ssl:webseal-cert-keyfile-stash
/opt/pdweb/etc/__TEMPLATE__.conf:ssl:ssl-keyfile
/opt/pdweb/etc/__TEMPLATE__.conf:ssl:ssl-keyfile-stash
/opt/pdweb/etc/__TEMPLATE__.conf:failover:failover-cookies-keyfile
/opt/pdweb/etc/__TEMPLATE__.conf:authentication-mechanisms:passwd-cdas
/opt/pdweb/etc/__TEMPLATE__.conf:authentication-mechanisms:passwd-ldap
/opt/pdweb/etc/__TEMPLATE__.conf:authentication-mechanisms:passwd-uraf
/opt/pdweb/etc/__TEMPLATE__.conf:authentication-mechanisms:token-cdas
/opt/pdweb/etc/__TEMPLATE__.conf:authentication-mechanisms:cert-ssl
/opt/pdweb/etc/__TEMPLATE__.conf:authentication-mechanisms:http-request
/opt/pdweb/etc/__TEMPLATE__.conf:authentication-mechanisms:sso-create
/opt/pdweb/etc/__TEMPLATE__.conf:authentication-mechanisms:sso-consume
/opt/pdweb/etc/__TEMPLATE__.conf:authentication-mechanisms:kerberosv5
/opt/pdweb/etc/__TEMPLATE__.conf:authentication-mechanisms:passwd-strength
/opt/pdweb/etc/__TEMPLATE__.conf:authentication-mechanisms:cred-ext-attrs
/opt/pdweb/etc/__TEMPLATE__.conf:authentication-mechanisms:su-password
/opt/pdweb/etc/__TEMPLATE__.conf:authentication-mechanisms:su-token-card
/opt/pdweb/etc/__TEMPLATE__.conf:authentication-mechanisms:su-certificate
/opt/pdweb/etc/__TEMPLATE__.conf:authentication-mechanisms:su-http-request
/opt/pdweb/etc/__TEMPLATE__.conf:authentication-mechanisms:su-cdsso
/opt/pdweb/etc/__TEMPLATE__.conf:authentication-mechanisms:su-kerberosv5
/opt/pdweb/etc/__TEMPLATE__.conf:authentication-mechanisms:failover-password
/opt/pdweb/etc/__TEMPLATE__.conf:authentication-mechanisms:failover-token-card
/opt/pdweb/etc/__TEMPLATE__.conf:authentication-mechanisms:failover-certificate
/opt/pdweb/etc/__TEMPLATE__.conf:authentication-mechanisms:failover-http-request
/opt/pdweb/etc/__TEMPLATE__.conf:authentication-mechanisms:failover-cdsso
/opt/pdweb/etc/__TEMPLATE__.conf:authentication-mechanisms:failover-kerberosv5
/opt/pdweb/etc/__TEMPLATE__.conf:authentication-mechanisms:failover-ext-auth-interface
/opt/pdweb/etc/__TEMPLATE__.conf:authentication-mechanisms:post-pwdchg-process
/opt/pdweb/etc/__TEMPLATE__.conf:authentication-mechanisms:ext-auth-interface
/opt/pdweb/etc/__TEMPLATE__.conf:dsess:ssl-keyfile
/opt/pdweb/etc/__TEMPLATE__.conf:dsess:ssl-keyfile-stash
/opt/pdweb/etc/__TEMPLATE__.conf:content:doc-root
/opt/pdweb/etc/__TEMPLATE__.conf:content:delete-trash-dir
/opt/pdweb/etc/__TEMPLATE__.conf:logging:server-log
/opt/pdweb/etc/__TEMPLATE__.conf:logging:config-data-log
/opt/pdweb/etc/__TEMPLATE__.conf:logging:requests-file
/opt/pdweb/etc/__TEMPLATE__.conf:logging:referers-file
/opt/pdweb/etc/__TEMPLATE__.conf:logging:agents-file
/opt/pdweb/etc/__TEMPLATE__.conf:aznapi-configuration:db-file
/opt/pdweb/etc/__TEMPLATE__.conf:aznapi-configuration:auditlog
[WINDOWS FILES]
BASEDIR=SOFTWARE\Tivoli\Access Manager WebSEAL:Path # this line is required at top of stanza
# fully qualified file names ; Required Flag (;R on the end - if file is required)
<BASEDIR>etc
<BASEDIR>keytab-default
[WINDOWS CONF FILES]
# configuration files that specify a file to include
# file:stanza:option
<BASEDIR>etc/__TEMPLATE__.conf:server:server-root
<BASEDIR>etc/__TEMPLATE__.conf:ldap:ssl-keyfile
<BASEDIR>etc/__TEMPLATE__.conf:ssl:webseal-cert-keyfile
<BASEDIR>etc/__TEMPLATE__.conf:ssl:webseal-cert-keyfile-stash
<BASEDIR>etc/__TEMPLATE__.conf:ssl:ssl-keyfile
<BASEDIR>etc/__TEMPLATE__.conf:ssl:ssl-keyfile-stash
<BASEDIR>etc/__TEMPLATE__.conf:failover:failover-cookies-keyfile
<BASEDIR>etc/__TEMPLATE__.conf:authentication-mechanisms:passwd-cdas
<BASEDIR>etc/__TEMPLATE__.conf:authentication-mechanisms:passwd-ldap
<BASEDIR>etc/__TEMPLATE__.conf:authentication-mechanisms:passwd-uraf
<BASEDIR>etc/__TEMPLATE__.conf:authentication-mechanisms:token-cdas
<BASEDIR>etc/__TEMPLATE__.conf:authentication-mechanisms:cert-ssl
<BASEDIR>etc/__TEMPLATE__.conf:authentication-mechanisms:http-request
<BASEDIR>etc/__TEMPLATE__.conf:authentication-mechanisms:sso-create
<BASEDIR>etc/__TEMPLATE__.conf:authentication-mechanisms:sso-consume
<BASEDIR>etc/__TEMPLATE__.conf:authentication-mechanisms:kerberosv5
<BASEDIR>etc/__TEMPLATE__.conf:authentication-mechanisms:passwd-strength
<BASEDIR>etc/__TEMPLATE__.conf:authentication-mechanisms:cred-ext-attrs
<BASEDIR>etc/__TEMPLATE__.conf:authentication-mechanisms:su-password
<BASEDIR>etc/__TEMPLATE__.conf:authentication-mechanisms:su-token-card
<BASEDIR>etc/__TEMPLATE__.conf:authentication-mechanisms:su-certificate
<BASEDIR>etc/__TEMPLATE__.conf:authentication-mechanisms:su-http-request
<BASEDIR>etc/__TEMPLATE__.conf:authentication-mechanisms:su-cdsso
<BASEDIR>etc/__TEMPLATE__.conf:authentication-mechanisms:su-kerberosv5
<BASEDIR>etc/__TEMPLATE__.conf:authentication-mechanisms:failover-password
<BASEDIR>etc/__TEMPLATE__.conf:authentication-mechanisms:failover-token-card
<BASEDIR>etc/__TEMPLATE__.conf:authentication-mechanisms:failover-certificate
<BASEDIR>etc/__TEMPLATE__.conf:authentication-mechanisms:failover-http-request
<BASEDIR>etc/__TEMPLATE__.conf:authentication-mechanisms:failover-cdsso
<BASEDIR>etc/__TEMPLATE__.conf:authentication-mechanisms:failover-kerberos
<BASEDIR>etc/__TEMPLATE__.conf:authentication-mechanisms:failover-ext-auth-interface
<BASEDIR>etc/__TEMPLATE__.conf:authentication-mechanisms:post-pwdchg-process
<BASEDIR>etc/__TEMPLATE__.conf:authentication-mechanisms:ext-auth-interface
<BASEDIR>etc/__TEMPLATE__.conf:dsess:ssl-keyfile
<BASEDIR>etc/__TEMPLATE__.conf:dsess:ssl-keyfile-stash
<BASEDIR>etc/__TEMPLATE__.conf:content:doc-root
<BASEDIR>etc/__TEMPLATE__.conf:content:delete-trash-dir
<BASEDIR>etc/__TEMPLATE__.conf:logging:server-log
<BASEDIR>etc/__TEMPLATE__.conf:logging:config-data-log
<BASEDIR>etc/__TEMPLATE__.conf:logging:requests-file
<BASEDIR>etc/__TEMPLATE__.conf:logging:referers-file
<BASEDIR>etc/__TEMPLATE__.conf:logging:agents-file
<BASEDIR>etc/__TEMPLATE__.conf:aznapi-configuration:db-file
<BASEDIR>etc/__TEMPLATE__.conf:aznapi-configuration:auditlog
[WINDOWS REGISTRY]
# specify keys to backup
SOFTWARE\Tivoli\Access Manager WebSEAL
SYSTEM\ControlSet001\Services\AMWeb-default
SYSTEM\CurrentControlSet\Services\AMWeb-default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment