「実行ディレクトリ/fg_config/」配下にコンフィグ、Tac Reportを保存
- ターゲット直接指定
forti_backup -l 192.0.2.1,user,password
- tac reportも取得
forti_backup -l 192.0.2.1,user,password
- ターゲット複数指定(CSV)
forti_backup -f target.csv
target csv format is ",, e.g.)
192.0.2.1,user,password
192.0.2.2,nwadmin,nwpassword
例)
c:\opt\appz
配下に展開, c:\opt\bin
配下にsymlink作成
DOSコマンドプロンプトでsymlink作成(Powershellでのsymlnk作成がいまひとつ分からなかった・・・)
mklink C:\opt\bin\forti_backup.exe C:\opt\appz\forti-backup\forti_backup.exe
PATHが通ってなければc:\opt\bin
をPATHに追加
Powershellの場合
$new_dir = "c:\opt\bin"
$new_path = [Environment]::GetEnvironmentVariable("Path", "User")
$new_path += ";$new_dir"
[Environment]::SetEnvironmentVariable("Path", $new_path, "User")