I've been using Restic as a backup system for a long time. In fact, I even wrote a tutorial about using it on Solus. But because of the VirtualBox VMs that I create and use, backups of my home directory were starting to take a very long time. And I do a backup before every update.
I wanted to fix that because VirtualBox VM's don't need to be backed-up. Their "snapshots" feature allows you to easily return to the last stable state should anything horrible happen to the current running state.
A little research with the restic --help
command soon showed me how to exclude those VMs from my backups, by adding this option to my .bashrc
backup alias: -e "/home/jerry/VirtualBox VMs". Then I started a backup, and it took just a few seconds instead of a few minutes.
Highly recommended for anybody who uses Restic and VMs.