Question about using --exclude

Eric Beversluis via Any discussion of rdiff-backup <[email protected]> Sun, 23 Feb 2025 00:13:15 -0500
Newsgroups gmane.comp.sysutils.backup.rdiff-backup.general
Message-ID <[email protected]>
I'm trying to back up my home directory while excluding the /VirtualBox 
VMs directory. I came up with this new command that, according to the 
syntax instructions, should mean rdiff-backup would henceforth skip that 
directory.

    rdiff-backup --api-version 201 backupĀ  --exclude
    '/home/eric/VirtualBox VMs' --include /home/eric
    --exclude '**' /run/media/eric/backup


Yet, when I ran this command, it proceeded to backup the 'VirtualBox 
VMs' folder. I thought I understood the syntax as saying that the 
--exclude Folder, coming before the --include /home/eric would take 
precedence and leave Folder out of the /home/eric backup.

What am I getting wrong here?
-- 
Eric Beversluis
www.ericbeversluis.com
2x Honorable Mention--Writer's Digest Contest