Managing snapshots with snapper

The snapshot command is included on RHEL 7 and can be used to manage snapshots and view their differences with the original data easily. It can be employed along with LVM or btrfs systems.h.

To install snapper, we fall back to RHEL's package management:

# yum install snapper

Currently, there seems to be a bug or feature on SELinux that prevents snapper from working if SELinux is enforced. We could allow the correct SELinux access to our resources by creating a new policy or simply set snapperd_t to a permissive domain. In this way, we can still use the power and security of SELinx, but just have it disabled for snapper as follows:

# semanage permissive -a snapperd_t

At a later date, you can use the -d option to delete ...

Get Learning RHEL Networking now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.