1 line
2.3 KiB
Plaintext
1 line
2.3 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p>I'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'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 <package></code> nor <code>pacman -Ss <package></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>​</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'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 -->   submitted by   <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>   <span><a href="https://www.reddit.com/r/archlinux/comments/r9y824/trying_to_set_up_snapper_what_to_exclude_from/">[comments]</a></span> |