Add snapshot and restore

This commit is contained in:
Khue Doan 2021-02-21 20:16:01 +07:00
parent 5e0036defd
commit a00cd2b288

View File

@ -1,10 +1,13 @@
.POSIX:
default: init metal infra
default: init snapshot metal infra
init:
vagrant up
snapshot:
vagrant snapshot save init
metal:
python3 -m venv .venv \
&& . .venv/bin/activate \
@ -18,5 +21,8 @@ infra:
stop:
vagrant halt
restore:
vagrant snapshot restore init
clean:
vagrant destroy -f