Hi all:

I am using BackupPC-3.1.0 and I want to back up a share using the
following exclusion patterns under rsync:

  + */
  + */Maildir/**
  - *

basically I want to include any directory tree starting with the
directory Maildir one level below the root of the transfer: specified
as /home, and passed to the remote rsync as /home/.

I specify this in a host specific config file using:

  $Conf{BackupFilesOnly} = {
    '/home' => ['+ */', '+ */Maildir/**', '- *'],
  };

If I look at the xferlog after letting it run for a bit and killing
the job (is there any way to view this log without killing the job
first??) I see:

  ...
  Checksum caching enabled (checksumSeed = 32761)
  Got checksumSeed 0x7ff9
  Sent include: /+ *
  Sent include: /*
  Sent include: /*/Maildir
  Sent include: /*/Maildir/**
  Sent include: /- *
  Sent exclude: /*
  Sent exclude: /*/*
  Sent exclude: /*/Maildir/*
  Got file list: 276916 entries
  Child PID is 9628
  Xfer PIDs are now 1690,9628
  ...

which looks wrong as the +/- specifiers look like they are included in
the paths. Also the '*/' specifier needed to recursively include all
directories is missing. I have no clue where:

    Sent exclude: /*/Maildir/*

is coming from. So I guess I am asking how do I need to specify my
rsync exclude/include rules (which do properly select the files of
interest when placed in a --include-file and passed to the rsync
client).

I can't put these in RsyncArgs as that array is used for every share
and would result in in nothing being backed up for any other share.

Now the funnypart about this, is that is seems to work properly. The
files that I saw transferred before I killed the backup actually look
like they matched my criteria, but I am at a loss as to how this is
occurring.

-- 
                                -- rouilj

John Rouillard
System Administrator
Renesys Corporation
603-643-9300 x 111

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
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/

Reply via email to