Re: [BackupPC-users] file exclude not working

2010-06-28 Thread Sri Rao
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.

Sri

On Sun, Jun 27, 2010 at 1:47 PM, Sri Rao  wrote:

> Hi,
>
> 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  /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[2]: file has vanished: 
> "/usr/var/lib/perceus/vnfs/gravityos-cf-logger/rootfs/proc/2/exe"
>
> Remote[2]: file has vanished: 
> "/usr/var/lib/perceus/vnfs/gravityos-cf-logger/rootfs/proc/2/task/2/exe"
> Remote[2]: 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!
>
> Sri
>
>
>
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] file exclude not working

2010-06-28 Thread Sri Rao
Thanks Ryan.  I will try that but wondering why the
BackupFilesExclude<https://backuppc.cloudflare.com/backuppc/index.cgi?action=view&type=docs#item__conf_backupfilesexclude_>is
not working.  I would think that it would either add the --exclude
args
to the list or from what it seems to be doing sending the exclude over the
connection.

One other piece I forgot to mention is I am using a restricted shell to only
allow rsync so not sure if that might be another reason for it not working.
The command that is sent is being run so it doesn't seem to be cause of the
issue.

Sri

On Mon, Jun 28, 2010 at 7:48 AM, Ryan Manikowski  wrote:

>  On 6/27/2010 4:47 PM, Sri Rao wrote:
>
> Hi,
>
> 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  /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[2]: file has vanished: 
> "/usr/var/lib/perceus/vnfs/gravityos-cf-logger/rootfs/proc/2/exe"
>
> Remote[2]: file has vanished: 
> "/usr/var/lib/perceus/vnfs/gravityos-cf-logger/rootfs/proc/2/task/2/exe"
> Remote[2]: 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!
>
>
> Sri
>
>
>
>
> --
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
>
>
> ___
> BackupPC-users mailing listbackuppc-us...@lists.sourceforge.net
> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>
>
> In the Xfer section of the config for the client host, enter this for
> RsyncArgs:
>
> --exclude=/path/to/exclude
>
>
> Add an additional '--exclude' entry for each subdir that you want excluded.
> To add additional, click the 'add' or 'insert' buttons.
>
>
> Ryan Manikowski
>
>
> --
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> ___
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>
>
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] file exclude not working

2010-06-27 Thread Sri Rao
Hi,

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  /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[2]: file has vanished:
"/usr/var/lib/perceus/vnfs/gravityos-cf-logger/rootfs/proc/2/exe"
Remote[2]: file has vanished:
"/usr/var/lib/perceus/vnfs/gravityos-cf-logger/rootfs/proc/2/task/2/exe"
Remote[2]: 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!

Sri
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/