System configuration changes, software installations, and upgrades can sometimes lead to unstable behavior or even system failure in Linux Mint. Creating a system snapshot with Timeshift preserves your operating system’s state, enabling you to restore your setup quickly when things go wrong. Timeshift streamlines this process by providing both a graphical interface and command-line options, making regular system backups accessible for users of all experience levels.
Using Timeshift GUI to Create a System Snapshot
Step 1: Install Timeshift if it’s missing from your system. Most Linux Mint installations include Timeshift by default, but if you need to install it, open a terminal and run:
sudo apt update
sudo apt install timeshift
This command ensures you have the latest version ready to use.
Step 2: Launch Timeshift from the application menu by searching for Timeshift
. When prompted, enter your administrator password to grant the necessary permissions for system-level operations.
Step 3: On first launch, Timeshift will present a setup wizard. Choose the snapshot type. For most users, RSYNC
is the recommended option as it works with common filesystems like EXT4 and supports incremental backups. Select BTRFS
only if your system uses the BTRFS filesystem and you are familiar with its management.
Step 4: Specify the storage location for your snapshots. It’s best to select a separate partition or an external drive to ensure your backups remain safe if your primary disk fails. Timeshift will list available drives; choose one with ample free space. As a guideline, allocate storage that’s two to three times the size of your root partition to retain several snapshots.
Step 5: Configure the snapshot schedule. Timeshift lets you automate backups on an hourly, daily, weekly, or monthly basis. For most desktop users, daily or weekly schedules strike a good balance between protection and storage use. Adjust the number of retained snapshots to prevent your backup drive from filling up.
Step 6: Decide whether to include user home directories in your snapshots. By default, Timeshift excludes these to minimize backup size and avoid overwriting personal files during restores. If you want to include configuration files or hidden settings, enable the appropriate options in the Users tab. For comprehensive personal data backups, consider using a dedicated tool like Deja Dup.
Step 7: Complete the setup and initiate your first snapshot by clicking the Create
button. Timeshift will display progress as it copies system files to the designated backup location. The initial snapshot may take some time, but subsequent incremental backups will be much faster.
Step 8: After completion, verify that your snapshot appears in the Timeshift main window. You can now close Timeshift; scheduled backups will run automatically if configured.
Using the Timeshift Command Line to Create and Manage Snapshots
For users who prefer terminal commands or need to script backup operations, Timeshift provides flexible command-line options.
Step 1: Open a terminal and list existing snapshots to confirm your backup status:
sudo timeshift --list
This command displays all available snapshots, including their creation dates and storage locations.
Step 2: Create a new system snapshot manually before making significant changes or upgrades:
sudo timeshift --create
This command initiates an immediate snapshot of your current system state, regardless of any schedule you may have set.
Step 3: If you want Timeshift to check your schedule and create a snapshot only if necessary, use:
sudo timeshift --check
This is useful for automated scripts or cron jobs that maintain regular backups without manual intervention.
Step 4: To restore your system interactively from a previous snapshot, run:
sudo timeshift --restore
Follow the prompts to select the desired snapshot and restore point. Timeshift will guide you through the process, including options for restoring the bootloader or excluding certain directories.
Step 5: To delete old or unnecessary snapshots and free up disk space, use:
sudo timeshift --delete --snapshot 'snapshot_name'
Replace 'snapshot_name'
with the actual name of the snapshot you wish to remove, as listed in the output of the --list
command.
Restoring Your Linux Mint System from a Timeshift Snapshot
If your system becomes unstable or fails to boot, Timeshift snapshots provide a reliable way to roll back to a working state.
Step 1: If you can still access your desktop, open Timeshift, select the snapshot taken before issues began, and click Restore
. Confirm the target device and follow the prompts. Timeshift will synchronize files and prompt you to reboot when finished.
Step 2: If your system won’t boot, use a Linux Mint Live USB to start a live session. Install Timeshift if necessary:
sudo apt update
sudo apt install timeshift
Launch Timeshift, set up the initial configuration (selecting RSYNC
if unsure), and point to your backup location. Select the appropriate snapshot and restore it. When prompted, ensure the restore paths match your system configuration, and allow Timeshift to reinstall the bootloader if needed. Reboot to complete the restoration.
Best Practices and Additional Tips
- Store snapshots on a separate drive or partition to protect backups from disk failure.
- Schedule regular snapshots to maintain recent restore points without manual effort.
- Exclude large media folders or non-essential directories to optimize storage use.
- Verify backup integrity periodically by browsing snapshots or using the
--check-snapshot
command. - Combine Timeshift with traditional file backup tools for comprehensive protection of both system state and personal data.
Creating system snapshots with Timeshift in Linux Mint simplifies recovery from failed updates, misconfigurations, or hardware issues. Regular backups ensure you can quickly restore stability and minimize downtime whenever problems arise.
Member discussion