emacs/var/elfeed/db/data/2f/2fdbbf5c29f46a3b06a1d2d72ae355b972eea2ee
2022-01-03 12:49:32 -06:00

1 line
2.3 KiB
Plaintext

<!-- SC_OFF --><div class="md"><p>I&#39;ve been trying to set up a BTRFS system with snapshots similar to the layout that OpenSUSE has, and encountered somewhat of a roadblock. My current subvolume layout is nearly identical to OpenSUSE&#39;s, with <code>@var</code> being a separate subvolume (so anything in <code>/var/</code> is not snapshotted).</p> <p>However, this has led to some difficulties such as uninstalled packages showing as installed after reverting to a pre-installation snapshot (despite the files no longer being on the system). I assume this is due to <code>/var/lib/pacman</code> being excluded from snapshots.</p> <p>Another issue I had was installed packages not present in the installed and local repo databases after reverting to a pre-uninstallation snapshot, leading to the package being present on my system but not showing in <code>pacman -Qs &lt;package&gt;</code> nor <code>pacman -Ss &lt;package&gt;</code> (searching the local repo). The only way I could uninstall said package was to reinstall it forcefully, using the <code>--overwrite</code> flag in pacman, and <em>then</em> uninstalling it.</p> <p>&#x200B;</p> <p>For reference, the local repository and its .db file that I use to contain my AUR packages is located at <code>/var/cache/pacman/aur-local</code>, alongside the pacman <code>/pkg</code> cache directory, where pacman packages go in <code>/pkg</code> and my built AUR packages go in <code>/aur-local</code>. My cloned PKGBUILDs go into <code>~/.cache</code>. With my current setup where the entirety of <code>/var</code> is a subvolume, this is excluded from snapshots.</p> <p>I&#39;ve seen some example layouts in the Arch wiki and forums, with some citing to make subvolumes for <code>/var/cache</code>, <code>/var/log</code>, <code>/var/spool</code>, <code>/var/tmp</code>, and <code>/var/machines</code>. Does anyone know what layout is most recommended (in regards to <code>/var</code>) to prevent the issues I described above?</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/dallasrage"> /u/dallasrage </a> <br/> <span><a href="https://www.reddit.com/r/archlinux/comments/r9y824/trying_to_set_up_snapper_what_to_exclude_from/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/archlinux/comments/r9y824/trying_to_set_up_snapper_what_to_exclude_from/">[comments]</a></span>