How can I do to not include the /opt directory in the snapshots?

how can I do to not include the /opt directory in the snapshots?
I don't care because it takes up too much space

/opt includes some applications that are managed by pacman like Heroic and Discord, excluding it may confuse pacman if you restore a snapshot. If you really don't want to exclude it, create an @opt subvolume and add an entry in /etc/fstab.

4 Likes

just adding that line to fstab (and rebooting) is enough?

You also need to create the subvolume and copy the data into the new subvolume.

2 Likes

Please, no pictures from terminal.

Not searchable, just unnecessarily bloats the backup files from the forum.
We are not telegram or twitter with infinite resources. :smiley:

3 Likes