What exactly does Vagrant snapshot save?

qwaz picture qwaz · Mar 27, 2017 · Viewed 8.3k times · Source

I use Vagrant on VirtualBox. Yesterday, I saved a snapshot of my project by running:

$ vagrant snapshot save 'my-project-date-time'

Today, I've made some changes to files and folders in my project that I want to revert. When I run:

$ vagrant snapshot restore 'my-project-date-time'

... the restoring process is completed successfully, yet the changed files and folders in my project remain the same and do not revert to the sate they were when the snapshot was taken yesterday.

So what exactly does the Vagrant snapshot save?

Answer

Marc Young picture Marc Young · Mar 27, 2017

Vagrant snapshots just call the provider "snapshots" method. So Vagrant snapshot on virtualbox just calls virtualbox snapshot.

So what exactly does the Vagrant snapshot save?

More info on virtualbox snapshots can be found here: https://www.virtualbox.org/manual/ch01.html#snapshots