Snapshots and saved data

What a snapshot is

A snapshot is the whole machine frozen at one moment: the memory, the processor, every device, and all the changes the phone has made to its disk. Restoring it brings the phone back exactly as it was, running apps included, without booting again.

When Vetro saves

With the phone, Vetro saves a snapshot:

The line next to that button says when the last snapshot was saved, how big it is and how long it took.

The next visit resumes from the last snapshot. Anything you did after it (a setting you changed, a file an app wrote) is not in it. Before closing the tab, click Save state (under Tools) if you want to keep your latest changes.

Where it is kept

Everything is kept in your browser's private storage for the site (the Origin Private File System, OPFS). It is not visible as normal files on your computer, and it is not sent anywhere.

WhatWhySize
Snapshotsresume the phone as you left itabout 1 GB for the phone, more as you install apps
Disk piecesthe parts of the phone's disk already read, so they are not downloaded againgrows as you use the phone, up to a few GB
Recordingskeyframes and logs of record and replaydepends on the recording
Boot imagesonly after a cold bootabout 136 MiB

Each device profile has its own snapshot: the phone you set up with the Phone profile and the one with the Tablet profile are two separate machines, and switching between them does not lose either. The same is true for a new version of the system image or of Vetro that changes the machine: the old snapshot is not used, and the first start downloads (or boots) a fresh one.

Starting over

To throw away the saved phone and start from the ready-made snapshot again:

  1. Open Tools, below the phone screen.
  2. Click Delete saved data, then click it again to confirm. The phone stops first (it keeps those files open while it runs).
  3. Reload the page.

It deletes the snapshots, the saved disk changes, the disk pieces and the recordings. The next start is a first visit again: it downloads the ready-made snapshot.

To remove absolutely everything Vetro stored, including the boot images of a cold boot, clear the site's data in the browser: in Chrome, click the icon to the left of the address, then Site settings and Delete data, or go to chrome://settings/content/all and remove the site.

Options in the setup form

The normal page always uses the defaults. The full setup form (app/?advanced=1, for developers) has these options; they are on by default and are best left on:

With cached snapshot off (or snapshot=0 in the address) nothing is saved and nothing is resumed: the phone does a cold boot of about 45 minutes. It is meant for development, not for everyday use.