LoginSignup
0
0

More than 3 years have passed since last update.

Virtualboxのovaをexportするscriptを作った(For windows)

Posted at

前書き

職場のノートパソコン上にVMを立ててOSS入れてナレッジを蓄積しているんだけど、
週末は空調を切られるため、室内は蒸し風呂状態。
破損を恐れて週末にバックアップとシャットダウンを手動でしていました。

このバックアップ、2時間程度かかるので稼働的にも地味につらい。
というわけで、Powershell書いてタスクスケジューラに突っ込んで自動化しました。

成果物

Github
https://github.com/atsuyuuki/Virtualbox-ova-export-script-for-windows/releases/tag/v1.0

使い方

  1. 上記Githubからpowershellをダウンロード
  2. 展開してvirtualbox_ova_export_script.ps1をpowershellで実行
  3. ExportしたいVMのUUIDを確認して控える
  4. virtualbox_ova_export_script.ps1 <UUID> <Export_Directory_Path>を引数に渡して実行する Export_Directory_Pathはディレクトリを指定してください。 指定したディレクトリに_.ovaという名前で生成されます。
  5. 完了すれば終わり。

タスクスケジューラに登録する場合は、上記引数をつけて登録してあげればOK。
登録の仕方はぐぐってください。
気が向いたら記載します。

あとがき

人生初、Githubで公開しました。
何か至らないところがあったらご指摘ください。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0