mirror of
https://github.com/khuedoan/homelab.git
synced 2025-07-04 23:40:20 +07:00
Add snapshot and restore
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user