Re: [Networker] directive to include certain file regex
2009-11-05 18:05:27
On Thu, Nov 05, 2009 at 05:51:50PM -0500, dustin gregory wrote:
> I've tried this as a global directive for << / >> and as a local directive
> running the backup as full always. No luck.
>
> What I'm trying to do is create a directive that will ONLY backup filenames
> with a certain pattern and skip everything else.
>
> I've tried flipping the always and skip just in case the man page was wrong.
> No luck.
>
> Anyone have any insight that could help me out? Thanks.
>
> Networker 7.5.1 on Solaris 10.
>
> #cat .nsr
> +always: data_D-db1*
> +skip: .?* *
> #find . -name "data_D-db1*"
> ./bck901/backups/db1/PAST/data_D-db1_I-2556859465_TS-DRIVE_HIST_DP_A01_FNO-393_ugks71k4
> ./bck901/backups/db1/PAST/data_D-db1_I-2556859465_TS-DRIVE_HIST_DP_A01_FNO-355_u2ks71k3
The problem here is that 'bck901' will match the skip entry and be
skipped... all of it. A +skipped directory isn't descended, so none of
the children can match.
It's possible changing it to a 'null' will let it find them, but then
you're going to have index information for the other files as well, even
if it doesn't back them up.
--
Darren
To sign off this list, send email to listserv AT listserv.temple DOT edu and
type "signoff networker" in the body of the email. Please write to
networker-request AT listserv.temple DOT edu if you have any problems with this
list. You can access the archives at
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER
|
|
|