Re: Restoring a QEMU snapshot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2017-03-28 at 12:20 -0700, stan wrote:
> On Tue, 28 Mar 2017 19:56:48 +0100
> Patrick O'Callaghan <pocallaghan@xxxxxxxxx> wrote:
> 
> > I can only say I have no recollection of typing that, and that I did
> > want to create a snapshot as a test. But it was a few days ago so I
> > may be wrong.
> 
> If you use bash, and have bash history enabled, at a command line you
> could type a CTRL-R and then type qemu to search back through history
> for commands with qemu in them that you've run.  Each time you hit
> CTRL-R it will look back one more time.
> 
> Or, you can just do
> less ~/.bash_history, type G to go to the bottom, and look for qemu
> using ?qemu.

Or use grep on .bash_history directly. However this still doesn't show
any instance of "qemu-img create -b ...". What it does show is:

$ grep "sudo qemu-img * create" .bash_history        
$ grep "sudo qemu-img * snapshot" .bash_history  
sudo qemu-img snapshot -c test win10
sudo qemu-img snapshot -c test Windows10.qcow2  
sudo qemu-img snapshot -l Windows10.qcow2  
sudo qemu-img snapshot -l
sudo qemu-img snapshot -l win10
sudo qemu-img snapshot -l Win10
sudo qemu-img snapshot -l Windows10.qcow2  
sudo qemu-img snapshot -l test
sudo qemu-img snapshot -l test
sudo qemu-img snapshot -l win10.qcow2
sudo qemu-img snapshot -l /home/poc/Win10/win10.qcow2
sudo qemu-img snapshot info /home/poc/Win10/win10.qcow2
sudo qemu-img snapshot info win10.qcow2  
sudo qemu-img snapshot info /var/lib/libvirt/images/Windows10.qcow2
sudo qemu-img snapshot -a /home/poc/Win10/win10.qcow2 win10.qcow2  
sudo qemu-img snapshot -a /var/lib/libvirt/images/Windows10.qcow2 /home/poc/Win10/win10.qcow2
sudo qemu-img snapshot -a /home/poc/Win10/win10.qcow2 /var/lib/libvirt/images/Windows10.qcow2
sudo qemu-img snapshot -a /var/lib/libvirt/images/Windows10.qcow2 win10.qcow2  
sudo qemu-img snapshot -a /var/lib/libvirt/images/Windows10.qcow2 /home/poc/Win10/win10.qcow2  
sudo qemu-img snapshot -a /home/poc/Win10/win10.qcow2 /var/lib/libvirt/images/Windows10.qcow2
sudo qemu-img snapshot -a /var/lib/libvirt/images/Windows10.qcow2 /home/poc/Win10/win10.qcow2  
sudo qemu-img snapshot -l /var/lib/libvirt/images/Windows10.qcow2

I'm afraid this is more confusing than it needs to be because I was
basically in "try anything" mode, but as you can see I did create a
snapshot labelled 'test' (and the '-l' option listed it), but did not
delete it nor use 'create -b' at any point.

Anyway, I don't expect anyone to try and decipher the above.

Thanks.

poc
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux