cancel
Showing results for 
Search instead for 
Did you mean: 

nbfindfile command

mcapshaw
Level 3

I am attempting to use nbfindfile to find files or folders older than 8 years old in the image of our file server.  Has anyone attempted this on their environment or a similar case?  Can this be done with nbfindfile?

1 ACCEPTED SOLUTION

Accepted Solutions

Mark_Solutions
Level 6
Partner Accredited Certified

As i asked earlier - do you have OpsCenter?

That should make it really easy to find the files you are looking for - it can search on dates, file types, created and modified dates

Hope this helps

View solution in original post

10 REPLIES 10

StefanosM
Level 6
Partner    VIP    Accredited Certified

I have never use it. In fact I was not aware of it :(

check the manual http://www.symantec.com/business/support/index?page=content&id=HOWTO72939

and use the command with the -s option

 
-s mm/dd/yyyy [HH:MM:SS] | -s_ut unix_time

Specifies the start date for the search. Backups that occurred at or after the specified date and time are searched. The default is 30 days before the end date. 

 
I hope that this command has  better behavior than bplist and bpflist
 
 

 

revarooo
Level 6
Employee

According to the documentation it should be possible, never tried it before.

Try using -s <date to start> -e <end date-being 8 years ago> options.

Here is the documentation: http://www.symantec.com/docs/HOWTO72939

 

 

edit: beat to the punch :)

Stumpr2
Level 6

How does this differ from bplist using the PI (path independant) option?

for i in `bpplclients -allunique | grep -i window | awk '{print $3}'`; do echo $i; bplist -C $i -l -t 13 -PI -s 09/05/2013 -e 09/10/2013 *.[l,m,n]df >> ./$i; done

the above command searches all window client for any SQL db files and puts them into a file named by the client_name

 

Mark_Solutions
Level 6
Partner Accredited Certified

I assume that this is a new 7.5 command that makes use of the .f files being drawn into EMM

If you have OpsCenter I am guessing that it uses the same or similar command for searches - and you may find it easier to use the OpsCenter GUI to do your searches

mcapshaw
Level 3

I dont think this will give me what I need.  I would like to look at an image find anything that hasnt been modified or changed since 2005 in many folders.  The nbdfile wildcard isnt that robust, this parameter will not work, -p /j/xxx/groups/*, but this will -p /j/xxx/groups/A*.  I can wildcard for a specific folder, but cannot wildcard and search every folder beneath a certain folder.  I have 7.2 million folders and files under groups and i want to search everything.

StefanosM
Level 6
Partner    VIP    Accredited Certified

you can always use the bpflist command

http://seer.support.veritas.com/docs/271392.htm

 

Example of the output from an execution of the bpflist command:

/usr/openv/netbackup/bin/admincmd/bpflist

9 0 9 49 47 1 0 0 35651584 /test/ddd 33188 root other 20 958143374 958143227 959788518

1. file sequence number in the backup image (starts at 1, a zero means this file is NOT in the image)
2. compressed size in bytes, plus 7 as safety margin (0=not compressed)
3. number of characters in the path name
4. number of characters in the files file line from the field *after* the path name to the end of the line
5. starting block of this file's data in the backup image
6. in_image flag (0=not in image, 1=in image)
7. raw partition size in bytes (0=not a raw partition)
8. size of the file in GBytes (only set if the file is bigger than 2 GBytes, otherwise zero)
9. file system physical device number
10. path name
11. mode bits in decimal (convert to octal - see below)
12. owner
13. group
14. real size in bytes (as in on-disk inode)
15. last access time
16. last modification time
17. last inode modification time

Mark_Solutions
Level 6
Partner Accredited Certified

As i asked earlier - do you have OpsCenter?

That should make it really easy to find the files you are looking for - it can search on dates, file types, created and modified dates

Hope this helps

mcapshaw
Level 3

Yes, I have Ops Center.  I will browse around and see what I can do in there.

StefanosM
Level 6
Partner    VIP    Accredited Certified

I agree with Mark. OpsCenter is your best friend.

Unless you want to use the output of the command to a script.

mcapshaw
Level 3

Thanks Everyone