-
Notifications
You must be signed in to change notification settings - Fork 6
/
snapper-rollback.conf
30 lines (29 loc) · 1.16 KB
/
snapper-rollback.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Rollback to snapper snapshot
#
# Requires a flat subvolume layout like specified here:
# https://wiki.archlinux.org/index.php/Snapper#Suggested_filesystem_layout
#
# Run with snapshot number as an argument like "snapper-rollback 642"
# This can be run either from your installed system or from a live arch ISO if
# you adjust the settings accordingly
#
# Some terminology:
# - your linux root is what gets mounted to `/` at boot time. Referred to
# as `main` in this tool
# - your btrfs root is the btrfs toplevel subvolume with subvol id = 5. See
# https://btrfs.readthedocs.io/en/latest/btrfs-subvolume.html#description
# for more info.
# Referred to as `root` in this tool.
# config for btrfs root
[root]
# Name of your linux root subvolume
subvol_main = @
# Name of your snapper snapshot subvolume
subvol_snapshots = @snapshots
# Directory to which your btrfs root is mounted.
mountpoint = /btrfsroot
# Device file for btrfs root.
# If your btrfs root isn't mounted to `mountpoint` directory, then automatically
# mount this device there before rolling back. This parameter is optional, but
# if unset, you'll have to mount your btrfs root manually.
#dev = /dev/sda42