概要
指定したTDVサーバのディレクトリとリソースリソースをpkg_exportコマンドラインユーティリティ(Windowsならコマンドプロンプト)を使用して、単一のCARファイルにexportできます。
※TDV Studioでエクスポートを行う場合は「Studioを使ったリソースのエクスポート」をご覧ください。
手順
1.コマンドラインを開きます。
2.<TDV_install_dir>/binに移動します。
3.以下のpkg_exportコマンドを実行します。
[]
で囲われたパラメータはオプションです。必要に応じてご利用ください。
※一行目のユーティリティの書き方はプラットフォームによって異なります。
プラットフォーム |
ユーティリティ |
Windows | pkg_export.bat |
UNIX/Linux | pkg_export.sh |
$ ./pkg_export.sh -pkgfile <file_name(hoge.carと記載)> <保存したいファイルやフォルダのパス>
-server <host_name> -user <user_name> -password <password>
-encryptionPassword <encryptionPassword>
[-domain <domain>][-port <port_number>] [-encrypt]
[-sso] [-sspi] [-spn <spn>] [-krb5Conf <krb5Conf>]
[-pkgname <name>] [-Description<text>]
[-optfile <file_name>] [-optfilePassword <optpassword>]
[-newOptfilePassword <new optpassword>]
[-rebindable <path> <description> ]
[-includeaccess ] [ -includecaching ]
[-nosourceinfo ] [ -includejars ]
[-includeAllUsers] [ -includeUser <domain> <user> ]
[-includeGroup <domain> <group>] ... [ -includeDomain <domain> ]
[-includeRequiredUsers ] [ -includeDependencies ]
[-includeStatistics][-genopt <filename>]
[-verbose][-quiet]
[-includeParentResources]
パラメータの説明(必須項目のみ)
オプション項目に関しては、「The TDV Package Export Utility」をご確認ください。
パラメータ | 必須/オプション |
説明 |
-pkgfile <file_name> | 必須 | 新しくCARファイル名を記入します。 |
-server <host_name> | 必須 | ユーティリティが接続するターゲットTDVサーバー。 |
-user <user_name> | 必須 | TDVシステム管理者のユーザー名。 |
-password <password> | 必須 | exportを実行しているTDVシステム管理者のパスワード。 |
-encryptionPassword | 必須 | CARファイル内の機密データを暗号化/復号化するために使用されるパスワードを新たに設定します(データソースパスワードなど)。 |
例1: この例では、myParameterizedQueryは、ordersデータソースからのproductsテーブルを含む依存関係とともにエクスポートされます。 -rebindableオプションは、インポート中に製品リソースをリバウンドする必要があることをユーザーに通知または通知するために指定されます。
$ ./pkg_export.sh -pkgfile MyExport.car
shared/procedures/myParameterizedQuery
-server localhost
-user admin -password AdminPassword
-includeDependencies
-rebindable shared/sources/ds_orders/products This needs rebinding to the production data source.
例2:この例では、shared/sources はSources_Backup.carにバックアップされています。
$ ./pkg_export.sh -pkgfile Sources_Backup.car
shared/sources
-optfile C:/BackupScripts/Sources/weekly.opt -optfilepassword password
-includeDependencies
-nosourceinfo
参考記事: