Last active
January 31, 2020 20:28
-
-
Save johnpmitsch/bc92296de4b9668101f192f1d97d0835 to your computer and use it in GitHub Desktop.
vagrant/virsh snapshot commands bashrc
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
# virsh-snapshot-create mybox mysnap | |
function virsh-snapshot-create { | |
cd ~/forklift | |
vagrant halt $1 | |
sudo virsh snapshot-create-as forklift_$1 $2 | |
vagrant up $1 | |
} | |
# virsh-snapshot-list mybox | |
function virsh-snapshot-list { | |
sudo virsh snapshot-list forklift_$1 | |
} | |
# virsh-snapshot-revert mybox mysnap | |
function virsh-snapshot-revert { | |
sudo virsh snapshot-revert forklift_$1 $2 | |
} | |
function sat-deploy-snapshot-create { | |
cd ~/sat-deploy | |
vagrant halt $1 | |
sudo virsh snapshot-create-as sat-deploy_$1 $2 | |
vagrant up $1 | |
} | |
function sat-deploy-snapshot-list { | |
cd ~/sat-deploy | |
sudo virsh snapshot-list sat-deploy_$1 $2 | |
} | |
function sat-deploy-snapshot-revert { | |
sudo virsh snapshot-revert sat-deploy_$1 $2 | |
vagrant up $1 | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment