How to Backup and Restore the Linux Development Environment in Chrome OS

Chromebooks equipped with Google’s native Linux development environment (known internally as Crostini) allow users to run desktop development tools, terminal command-line utilities, code editors, and graphical Linux applications seamlessly inside a secure Debian-based virtual container. While running inside an isolated sandbox protects Chrome OS against system instabilities, it also means that unexpected container corruption, an aggressive Chrome OS powerwash, or hardware upgrades can wipe hours of local configuration and source code in seconds. Chrome OS includes a dedicated, graphical backup and restore tool within System Settings that packages your entire Linux environment—including all installed Debian packages, configurations, database servers, and home directory files—into a single compressed backup image.

Understanding How Chrome OS Backs Up Linux Containers

The Chrome OS backup mechanism creates an exact snapshot of your primary Linux container (typically named penguin inside the termina virtual machine) and serialises it into a custom archive bearing the .tini file extension. This format packages both filesystem metadata and data blocks, ensuring complete parity upon restoration:

  • Complete Environment State: Unlike manual dotfile backups, the .tini image preserves your active shell profiles (such as .bashrc or .zshrc), installed APT packages, custom systemd service scripts, and local developer directories.
  • Destination Flexibility: You can save the backup file directly to your Chromebook’s local Downloads directory, an external USB thumb drive, an SD card, or directly to your connected Google Drive storage for cloud resilience.
  • Storage Considerations: Ensure your target storage volume has adequate free space equivalent to your current Linux disk usage. Backing up a 20GB development environment requires roughly 10GB to 20GB of destination storage depending on file compressibility.

Creating a Complete Linux Environment Backup in Settings

Before initiating the backup process, close all active Linux terminal sessions and graphical Linux apps to prevent file-locking conflicts:

  1. Open the Settings app on your Chromebook by clicking the Quick Settings panel in the bottom-right corner of your desktop shelf and tapping the gear icon.
  2. In the left-hand navigation pane, select About ChromeOS, or scroll down and click Advanced to expand additional menus.
  3. Click Developers from the sidebar.
  4. Under the Developers heading, select Linux development environment.
  5. Locate the Backup and restore card and click Backup.
  6. A system dialogue prompts you to choose the destination folder. Select your desired save directory—such as an external USB flash drive or your local My files folder.
  7. Enter a recognisable file name (for example, crostini-backup-debian-2026.tini) and click Save.
  8. Chrome OS initiates the container export process, displaying a progress notification in your system tray. Do not shut down your Chromebook or disconnect external drives until the notification confirms that the backup has completed successfully.

Restoring a Linux Environment from a Previous Backup

If your Linux container encounters package dependency breaks, or if you are setting up a newly acquired Chromebook, you can restore your complete workspace state in minutes:

  1. Open Settings and navigate to Developers > Linux development environment.
  2. Under the Backup and restore section, click Restore.
  3. Chrome OS displays a confirmation dialogue warning that restoring a backup will completely replace your current Linux files, applications, and container configurations. Click Restore to acknowledge the warning.
  4. In the file browser dialogue, navigate to your saved .tini archive, select it, and click Open.
  5. The system begins unpacking the virtual machine container image. Once restoration finishes, launch the Terminal app to resume work with your exact previously installed applications and personal directories intact.

Exporting and Managing Container Snapshots via Crosh

For technical users seeking automated backups or managing multiple containers, Chrome OS provides low-level control through the Chrome OS Developer Shell (Crosh):

  1. Press Ctrl + Alt + T in your browser to launch Crosh.
  2. Access the virtual machine manager by executing:
    vmc export termina penguin <destination>
  3. To restore or import a specific container under a custom label:
    vmc import termina custom_container <source.tini>

Creating regular snapshots before executing major Linux system updates guarantees that your programming environments, custom packages, and local web applications can be restored immediately without downtime.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.