Created
June 2, 2013 09:46
-
-
Save igrep/5693172 to your computer and use it in GitHub Desktop.
take a snapshot of my VM
自分用VMのスナップショットを日付付きで。
参考:
http://d.hatena.ne.jp/machua/20100502/1272780972
http://d.hatena.ne.jp/ymaru/20071123/p1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set date_tmp=%date:/=% | |
set time_tmp=%time: =0% | |
set yyyy=%date_tmp:~0,4% | |
set mm=%date_tmp:~4,2% | |
set dd=%date_tmp:~6,2% | |
set hh=%time_tmp:~0,2% | |
set mi=%time_tmp:~3,2% | |
set datetime=%yyyy%-%mm%-%dd%-%hh%-%mi% | |
VBoxManage.exe snapshot "Ubuntu" take "Ubuntu-"%datetime% | |
set date_tmp= | |
set time_tmp= | |
set yyyy= | |
set mm= | |
set dd= | |
set hh= | |
set mi= | |
set datetime= | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment