cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way of getting a list of file systems being backed up?

luisvidal
Level 5

Hi gang,

 

Is there a way of getting a list of file systems being backed up for a client? I want to verify and show to auditors that certain file systems (directories) are being covered during the backups. Is there an easy way of doing this for a few servers?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

revarooo
Level 6
Employee

bpcoverage will do this for you.

DOCUMENTATION: What is the "/usr/openv/netbackup/bin/admincmd/bpcoverage" command used for?

http://www.symantec.com/business/support/index?page=content&id=TECH9292

 

Snippet:

 

While this command is unsupported,  it can be used to test or gather the following information from the client:
  • Check connectivity to a NetBackup client system
  • Check what mount points or drive letters are seen on a client
  • Check if the mount point or drive letter will be backed up by a policy on the master server
  • Check the client OS version and NetBackup version installed.  
Note: In NetBackup 5.x,  the bpcoverage command only shows the base NetBackup version installed on Windows clients. UNIX clients should still show the specific maintenance pack level.
The following is an example of the output from bpcoverage -c <hostname> on a 5.1 MP3 master server to a Solaris client:

# cd /usr/openv/netbackup/bin/admincmd
# ./bpcoverage -c starfury

File System Backup Coverage Report (UNIX and Windows only)
----------------------------------------------------------
 
Key:  *         - Policy is not active
UNCOVERED - Mount Point not covered by an active policy
MULTIPLE  - Mount Point covered by multiple active policies

CLIENT: starfury

Mount Point  Device            Backed Up By Policy Notes
-----------  ------            ------------------- -----
/            /dev/dsk/c0t0d0s0 Solaris_systems        
/etc/mnttab  mnttab            Solaris_systems        
/export/home /dev/dsk/c0t0d0s7 Solaris_systems        

           Policy Hardware/OS Report
           -------------------------

Key:  *         - Policy is not active
CLIENT    - hostname (uname information)
VERSION   - NetBackup version running on the client

CLIENT:  starfury (sun4u/SunOS 5.9 Generic)
VERSION: NetBackup-Solaris9 5.1MP3
 
Policy Name         Hardware/OS
-----------         -----------
Solaris_systems     Solaris/Solaris9
test                Solaris/Solaris9
 

View solution in original post

6 REPLIES 6

revarooo
Level 6
Employee

bpcoverage will do this for you.

DOCUMENTATION: What is the "/usr/openv/netbackup/bin/admincmd/bpcoverage" command used for?

http://www.symantec.com/business/support/index?page=content&id=TECH9292

 

Snippet:

 

While this command is unsupported,  it can be used to test or gather the following information from the client:
  • Check connectivity to a NetBackup client system
  • Check what mount points or drive letters are seen on a client
  • Check if the mount point or drive letter will be backed up by a policy on the master server
  • Check the client OS version and NetBackup version installed.  
Note: In NetBackup 5.x,  the bpcoverage command only shows the base NetBackup version installed on Windows clients. UNIX clients should still show the specific maintenance pack level.
The following is an example of the output from bpcoverage -c <hostname> on a 5.1 MP3 master server to a Solaris client:

# cd /usr/openv/netbackup/bin/admincmd
# ./bpcoverage -c starfury

File System Backup Coverage Report (UNIX and Windows only)
----------------------------------------------------------
 
Key:  *         - Policy is not active
UNCOVERED - Mount Point not covered by an active policy
MULTIPLE  - Mount Point covered by multiple active policies

CLIENT: starfury

Mount Point  Device            Backed Up By Policy Notes
-----------  ------            ------------------- -----
/            /dev/dsk/c0t0d0s0 Solaris_systems        
/etc/mnttab  mnttab            Solaris_systems        
/export/home /dev/dsk/c0t0d0s7 Solaris_systems        

           Policy Hardware/OS Report
           -------------------------

Key:  *         - Policy is not active
CLIENT    - hostname (uname information)
VERSION   - NetBackup version running on the client

CLIENT:  starfury (sun4u/SunOS 5.9 Generic)
VERSION: NetBackup-Solaris9 5.1MP3
 
Policy Name         Hardware/OS
-----------         -----------
Solaris_systems     Solaris/Solaris9
test                Solaris/Solaris9
 

mph999
Level 6
Employee Accredited

bpcoverage is best, it gives a list of filesystems as opposed to a list of files.

Martin

Marianne
Level 6
Partner    VIP    Accredited Certified

bpcoverage will connect to client to list filesystems. It does not list filesystem actually backed up by NBU.

Requirement:

Is there a way of getting a list of file systems being backed up for a client?

I am with Taqadus on this one - bplist is most appropriate.

Top 2 or 3 directory levels can be used with bplist (as opposed to the default 999 levels):
bplist -C <client> -s <start-date> -R 3 /

revarooo
Level 6
Employee

Yes it does:-

 

 

bpcoverage -c globe
       File System Backup Coverage Report (UNIX and Windows only)
       ---------------------------------------------------------------------------------
 
       Key:  *         - Policy is not active
             UNCOVERED - Mount Point not covered by an active policy
             MULTIPLE  - Mount Point covered by multiple active policies
 
 
CLIENT: globe
 
   Mount Point               Device                Backed Up By Policy   Notes
   -----------               ------                -------------------   -----
   /                         /dev/sda2             test
   /dev/pts                  devpts                                      UNCOVERED
   /opt                      /dev/sda3                                   UNCOVERED
   /proc/sys/fs/binfmt_misc  none                                        UNCOVERED
   /sys                      sysfs                                       UNCOVERED
   /sys/kernel/debug         debugfs                                     UNCOVERED
   /sys/kernel/security      securityfs                                  UNCOVERED
 

mph999
Level 6
Employee Accredited

I noted the question stated "certain file systems (directories) are being covered during the backups" - I took this to mean, thatthe filesystems are listed in a policy.

Hmm, I suppose thinking about it, bpcpverage doesn't show if it is successful or not, just if the filesystem is listed/ covered by a policy.

However, if you used bpcoverage followed by, for example, the trylog covering the backup for the client, and this shows status 0, job done.

That is, I'm covering these filesystem, job didn't fail therefore they are backed up.  This is the way 'we' used to do it in my previous life for SOX auditing.

However, if you wish to 'prove' they are backed up, the as stated, bplist is better, as I suppose you may not believe that the fact the are covered and the job didn't fail as proof.  However, if you really have to prove things, you would have to run a test restore.  A restore is the ONLY way to prove your data can be recovered (this is true for any backup software).

Thinking back, we used to also restore random files from backups once the backup had completed, and was done automatically through scripts.  This + the fact that we showed the client was in a policy, and that it didn't fail was sufficient to meet the auditors requirements.

Martin