ページの先頭行へ戻る
Interstage Shunsaku Data Manager コマンドリファレンス

4.1 shundbackup

名前

shundbackup -- ディレクタデータファイルのバックアップ開始宣言および終了宣言


形式


shundbackup -s director識別子 { -b | -e | -c }


機能説明

ディレクタデータファイルのバックアップ開始宣言、終了宣言および開始宣言のキャンセルを行います。

オプション


-s director識別子

director識別子を指定します。

-b

バックアップ開始宣言をする場合に指定します。

-e

バックアップ終了宣言をする場合に指定します。
本オプションは、バックアップ開始宣言が実行されている場合のみ指定可能です。

-c

バックアップ開始宣言をキャンセルする場合に指定します。
本オプションは、バックアップ開始宣言が実行されている場合のみ指定可能です。


使用例


1

director用動作環境ファイルのDataFileFolderに指定されたディレクタデータファイルのバックアップを行います。

SolarisLinuxSolaris/Linuxの場合

shundbackup -s shund1 -b
cp /shunsaku/shund1/*  /backup/shund1/
shundbackup -s shund1 -e

WindowsWindowsの場合

shundbackup -s shund1 -b
copy /b C:\Shunsaku\shund1\*  D:\backup\shund1\
shundbackup -s shund1 -e
2

ディレクタデータファイルのバックアップが失敗したため、バックアップをキャンセルします。

SolarisLinuxSolaris/Linuxの場合

shundbackup -s shund1 -b
cp /shunsaku/shund1/*  /backup/shund1/

cp: writing '/backup/shund1/': No space left on device    ・・・・・(エラーメッセージ)

shundbackup -s shund1 -c

WindowsWindowsの場合

shundbackup -s shund1 -b
copy /b C:\Shunsaku\shund1\*  D:\backup\shund1\

C:\Shunsaku\shund1\ ディスクに十分な空き領域がありません。    ・・・・・(エラーメッセージ)

shundbackup -s shund1 -c

終了ステータス

以下の終了ステータスが返されます。

0:正常終了
0以外:異常終了

注意