p_omiotek
1 Nickel

Directives to backup checkpoint from EBR

Hello,

I want to backup checkpoints from my EBR appliance but I have no idea how to create directive in NetWorker.

Following Integration Guide I must buckup checkpoints from /data01, /data02 and /data03, but how to skip all files and include only checkpoints folders and files. Names of this folders are changing every checkpoints (name pattern is cp.YYYYMMDD.....).

Regards.

Pawel

Tags (2)
0 Kudos
8 Replies
crazyrov
4 Tellurium

Re: Directives to backup checkpoint from EBR

Did you try using the save set as /path/cp.* ?

0 Kudos
p_omiotek
1 Nickel

Re: Directives to backup checkpoint from EBR

Hi,

I've tried

87651:save: Cannot get status on path '/data01/cp.*': No such file or directory

I must backup only cp catalogs and it's content. EMC doesn't support wildcards in scheduled backup https://emc--c.na5.visual.force.com/apex/KB_HowTo?id=kA0700000004MJe

Regrads

Pawel

0 Kudos
coganb
3 Cadmium

Re: Directives to backup checkpoint from EBR

Hi Pawel,

Try this directive:

always:cp.*

+skip:*

-Bobby

0 Kudos
p_omiotek
1 Nickel

Re: Directives to backup checkpoint from EBR

Hi Bobby,


I've tryied such combination:

<< / >>

always: cp.*

+skip: *

Result: no folder

<< / >>

+always: cp.*

+skip: *

Result: Empty folders cp.20131121.......

Pawel

0 Kudos
coganb
3 Cadmium

Re: Directives to backup checkpoint from EBR

Hi Pawel,

What kind of directive are you using?  I used this as a local directive (.nsr file) in the folder that is being backed up on a linux machine and it worked for me.

-Bobby

0 Kudos
p_omiotek
1 Nickel

Re: Directives to backup checkpoint from EBR

Hi,

I'm using server directives becouse name and quantity of cp folders could be changed. These folders are checkpoints in ebr appliance.

Maybe there is another method wich I can use to backup only specific folders and its contents, but name and quantity could be changed.

Pawel

0 Kudos
Highlighted
coganb
3 Cadmium

Re: Directives to backup checkpoint from EBR

Hi,

I couldn't get this to work using directives.  The easiest way I can think of doing this is to use a custom backup command to list the cp directories before you start and then back them up.  I'll give you an example of the sort of thing you might use, but you would need to adapt this to your directory structure and test it thoroughly before implementing.  I did a couple of quick tests here and it seems to work.  You would need to name this script with a name beginning with the letters nsr, save it where the NetWorker binaries are, and put the script name in the 'backup command' field of the NetWorker client.

In my example, the files to be backed up are in /etc/testdir and I want to backup only those files or directories starting with the letters 'cp'. 

#!/bin/sh

/bin/ls /etc/testdir | grep ^cp > /tmp/list_of_dirs 2>&1

list_of_cps=`cat /tmp/list_of_dirs`

for cpdir in $list_of_cps

do

save -s vm-lego-121 /etc/testdir/$cpdir

done

/bin/rm /tmp/list_of_dirs

-Bobby

p_omiotek
1 Nickel

Re: Directives to backup checkpoint from EBR

Hi,

Thanks for your help. I'll wait for 8.1.1 version, there is a special job to backup ebr checkpoints.

Regards,

Pawel

0 Kudos