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: .POSIX:
default: init metal infra default: init snapshot metal infra
init: init:
vagrant up vagrant up
snapshot:
vagrant snapshot save init
metal: metal:
python3 -m venv .venv \ python3 -m venv .venv \
&& . .venv/bin/activate \ && . .venv/bin/activate \
@ -18,5 +21,8 @@ infra:
stop: stop:
vagrant halt vagrant halt
restore:
vagrant snapshot restore init
clean: clean:
vagrant destroy -f vagrant destroy -f