So I believe I have figured it out. Seems rsync does relative filtering from the "root" directory that you are copying from. Here is the little blurb from the rsync man:
o if the pattern starts with a / then it is anchored to a particu-
lar spot in the hierarchy of files, otherwise it is matched
against the end of the pathname. This is similar to a leading ^
in regular expressions. Thus "/foo" would match a file named
"foo" at either the "root of the transfer" (for a global rule)
or in the merge-file's directory (for a per-directory rule). An
unqualified "foo" would match any file or directory named "foo"
anywhere in the tree because the algorithm is applied recur-
sively from the top down;
so I removed the beginning of the directory I was trying to filter and left the pattern as rootfs/proc and it seems to be working.
I am new to backuppc. I have setup the server and it is backing things okay except in one instance. I am trying to backup a machine specifying multiple sharenames. For one of the shares I want to exclude some subdirs from being backed up. I am using the rsync method. For some reason it doesn't seem to be excluding that subdir though. Here is the log:
Running: /usr/bin/ssh -q -x -l backuppc xxxx /usr/bin/rsync --server --sender --numeric-ids --perms --owner --group -D --links --hard-links --times --block-size=2048 --recursive --ignore-times . /usr/var/lib/perceus/
Xfer PIDs are now 9350
Got remote protocol 30
Negotiated protocol version 28
Sent exclude: /usr/var/lib/perceus/vnfs/*/rootfs/proc/*
Remote: file has vanished: "/usr/var/lib/perceus/vnfs/gravityos-cf-logger/rootfs/proc/2/exe"
Remote: file has vanished: "/usr/var/lib/perceus/vnfs/gravityos-cf-logger/rootfs/proc/2/task/2/exe"
Remote: file has vanished: "/usr/var/lib/perceus/vnfs/gravityos-cf-logger/rootfs/proc/3/exe"
I have set the sharenames and in BackupFilesExclude set the key to be the share /usr/var/lib/perceus and the value to
/usr/var/lib/perceus/vnfs/*/rootfs/proc/* . What am I doing wrong?
Thanks for the help!