<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Private on dnk8n</title>
    <link>/categories/private/</link>
    <description>Recent content in Private on dnk8n</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Mon, 16 Nov 2020 09:43:17 +0000</lastBuildDate>
    
	<atom:link href="/categories/private/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Create readonly btrfs snapshots and restore them if required</title>
      <link>/posts/create-readonly-btrfs-snapshots-and-restore-them-if-required/</link>
      <pubDate>Mon, 16 Nov 2020 09:43:17 +0000</pubDate>
      
      <guid>/posts/create-readonly-btrfs-snapshots-and-restore-them-if-required/</guid>
      <description>Mount btrfs volumes to disk: sudo mount /dev/mapper/luks-&amp;lt;TAB&amp;gt; /mnt/btrfs
Make a read-only snapshot: sudo btrfs subvolume snapshot -r /mnt/btrfs/system_fedora33 /mnt/btrfs/snapshots/system_fedora33/@snapshot_$(date &#39;+%Y-%m-%d_%H-%M&#39;)
Rollback snapshot created:  Boot into an alternative operating system
 Rename filesystem for safety: sudo mv /mnt/btrfs/system_fedora33 /mnt/btrfs/system_fedora33_bak
 Reinstate snapshot as a read+write filesystem: sudo btrfs subvolume snapshot /mnt/btrfs/snapshots/system_fedora33/@snapshot_2020-01-01_01-01 /mnt/btrfs/system_fedora33
 Delete the no longer required read-only snapshot: sudo btrfs subvolume delete /mnt/btrfs/snapshots/system_fedora33/@snapshot_2020-01-01_01-01
 Remove original filesystem once restore is proven to work: sudo btrfs subvolume delete /mnt/btrfs/system_fedora33_bak</description>
    </item>
    
  </channel>
</rss>