Administration Guide > TDV Command-Line Utilities > The TDV Export and Import Utilities > Using the Backup Export Utility
 
Using the Backup Export Utility
The backup export utility has the following restrictions:
Export does not include run-time history such as log files or probe history.
The -pkgname and -description flags are optional. They let you include a name and notes within the contents.xml to assist in later identification.
Users should have write access to TDV_INSTALL/conf/server directory
To use the backup export utility
1. Open a command prompt window.
2. Navigate to <TDV_install_dir>/bin.
3. Run backup_export:
./backup_export
-server <host_name> [-port <port_number>] [-encrypt]
-pkgfile <file_name>
-user <user_name> -password <password> [-domain <domain>]
-encryptionPassword <encryptionPassword>
[ -sso ] [ -sspi ] [ -spn <spn> ] [ -krb5Conf <krb5Conf> ]
[-pkgname <name>] [-description <text>]
[-optfile <file_name>] [-excludeJars]
[-includeStatistics]
[-genopt <filename>]
[-verbose]
The backup_export parameters are described in the following table.
Backup Export Parameters
Optional/ Required
Comments
-server <host_name>
Required
Target TDV server to which the utility is to connect.
-port <port_number>
Optional
Specifies the Web Services base port (HTTP) used to communicate with the TDV Server. The default value is 9400.
-encrypt
Optional
Encrypts communication between the command line and TDV using SSL sent over the dedicated HTTPS port.
The HTTPS port is 9402
-pkgfile <file_name>
Required
Specifies the path and file name of the backup archive file (CAR). The file path must be accessible to the command-line client. TDV passes data to the command-line client, and then the client writes that CAR file to the specified location.
-encryptionPassword
Required
The password used to encrypt /decrypt sensitive data in your car file, for example, data source password, etc.
-user <user_name>
Required
User name of the TDV system administrator.
-password <password>
Required
Password of the administrative user who is performing the export.
-domain <domain>
Optional
User domain. The default value is composite.
-sso
Optional
Enables SSO authentication. Must be used with the -spn option.
There is no need to input user_name or password.
-sspi
Optional
For Windows environments configured with sspi, you can use this parameter after -sso and -spn.
-spn <spn>
Optional
Use this parameter after specifying -sso, to indicate what the service principal name is. Use one of the following formats depending on the protocol you are using:
sspi is <ServiceName/Full_ComputerName@Realm>
JGSS is <ServiceName@Full_ComputerName>
-krb5Conf <krb5Conf>
Optional
For environments configured with multiple Kerberos authentication files, you can use this parameter after -sso and -spn to specify which authentication file to use.
<krb5Conf> must specify the full path and filename to use.
If this parameter is not specified, the default Kerberos system file is used.
-pkgname <name>
Optional
Names an attribute in the contents.xml within the exported backup file.
-description <text>
Optional
Description of the exported archive file set as an attribute of the contents.xml file within the exported CAR. This description is displayed prior to a Studio-based import.
-optfile <file_name>
Optional
Specifies a file to pass options without using the command line. The options file is useful for hiding password information.
For example:
backup_export -server localhost -user test -password <password> -pkgfile sample.car
is the same as:
backup_export -optfile sample.opt
where sample.opt contains:
-server localhost -user test
-password <password> -pkgfile sample.car
-excludeJars
Optional
Suppresses export of custom Java procedure data source JAR files.
-includeStatistics
Optional
Includes any known cardinality statistics about data source table boundaries, column boundaries, and configurations when statistics gathering is enabled.
-genopt
Optional
By giving this option and an opt file name, the parameters will be stored in the opt file with the password encrypted. While doing an export or import operation the password saved will not be shown as a clear text. The file created can later be used in the -optfile option of this backup_export command.
-verbose
Optional
Generates output describing the export in the command-line window.