Contents
How do I configure snapper?
Creating a new configuration
- Create a configuration file at /etc/snapper/configs/config based on the default template from /etc/snapper/config-templates .
- Create a subvolume at /path/to/subvolume/. snapshots where future snapshots for this configuration will be stored.
- Add config to SNAPPER_CONFIGS in /etc/conf.
How to restore Snapper?
Start the Snapper module from the Miscellaneous section in YaST or by entering yast2 snapper . Choose the Current Configuration from which to choose a snapshot. Select a timeline snapshot from which to restore a file and choose Show Changes.
What is Snapper in suse?
Snapper on SUSE Linux Enterprise Server is preconfigured to serve as a tool that lets you undo changes made by zypper and YaST. For this purpose, Snapper is configured to create a pair of snapshots before and after each run of zypper and YaST.
What is openSUSE snapshot?
Snapper is a tool for filesystem snapshot management. During a fresh install of openSUSE, the default is to use Btrfs on root, meaning / and the filesystem XFS on /home. If you select the option to not seperate /home during openSUSE install, the default is for everything, including /home, to be under Btrfs.
What does Snapper rollback do?
Using the YaST Snapper module or the snapper command line tool, you can undo the changes made by YaST/zypper by restoring files from the “pre-snapshot”. Comparing two snapshots the tools also allow you to see which files have been changed. You can also display the differences between two versions of a file (diff).
Why does openSUSE use btrfs?
By default, openSUSE is set up using Btrfs and snapshots for the root partition. Snapshots allow you to easily roll back your system if needed after applying updates, or to back up files. Snapshots can easily be managed with Snapper. This is achieved by using Btrfs subvolumes on the root file system.
Does ext4 support snapshot?
The ext4 filesystem has no built-in snapshot feature. The generic way to make snapshots under Linux is at the level of the storage volume. Your filesystem must be on an LVM logical volume, which is Linux’s own partition system, as opposed to directly on a platform-native disk partition.
Why does OpenSUSE use btrfs?
Is there a snapper config for root file system?
As you can see YaST has created a snapper config called “root” for your root file system. You can see what snapshots exist: Snapshot #0 always refers to the current system. There might already be several other snapshots depending on the uptime of your system and on whether you already used YaST or zypper.
How to restore a set of files in Snapper?
To restore a set of files, select the relevant files or directories by ticking the respective check box. Click Restore Selected and confirm the action by clicking Yes . To restore a single file, activate its diff view by clicking on its name. Click Restore From First and confirm your choice with Yes .
Which is the default snapshot config for snapper?
The default config installed with Snapper for the / directory is named root. It creates and manages the YaST and Zypper snapshots as well as the hourly backup snapshot for / . You may create your own configurations for other partitions formatted with Btrfs or existing subvolumes on a Btrfs partition.
Where are the Snapper config files located in SuSE?
The way Snapper behaves is defined in a config file that is specific for each partition or Btrfs subvolume. These config files reside under /etc/snapper/configs/. The default config installed with Snapper for the / directory is named root. It creates and manages the YaST and Zypper snapshots as well as the hourly backup snapshot for / .