Forum Discussion

bc1410's avatar
bc1410
Level 6
3 years ago

why can i backup via cli using bpbackup but cant from the same netbackup Admin Console policy

Hello

Netbackup 8.2 RedHat linux 7.9  one master/media server

The netbackup policy named Archival-test which has a type = Standard; schedule types are User Backup(named Archival), Full backup(named Archival Full), Cumulative Inc backup(named Archival Cumulative). The linux netbackup client is listed

So I have a file set of data that resides on a nas - lets say the directory is mounted on the linux client as follows: /nas1.test.com/Processing_Gen

The data needing backed up is under /nas1.test.com/Processing_Gen/ARCHIVE/Archive_[01172022134535PM]_Test_Junk_Point_

If I use the following netbackup cli syntax on the Linux client the backup is successful:

/usr/openv/netbackup/bin/bpbackup -p Archival-test -s Archival -S pgrid-1 '/nas1.test.com/Processing_Gen/ARCHIVE/Archive_\[01172022134535PM\]_
Test_Junk_Point'

So if I try to use the Admin console GUI with same policy and add the Backup Selection of /nas1.test.com/Processing_Gen/ARCHIVE/Archive_\[01172022134535PM\]_
Test_Junk_Point I get a status 71 when running a manual bkup

here is a snip from the bpbkar:

22:02:41.821 [57106] <2> create_backup_data_list: name: /nas1.test.com/Processing_Gen/ARCHIVE/Archive_[01172022134535PM]_
Test_Junk_Point, Backupid: arch-1.test.com_1642561360
22:02:41.821 [57106] <4> bpbkar expand_wildcards: start to backup filelist /nas1.test.com/Processing_Gen/ARCHIVE/Archive_[01172022134535PM]_
Test_Junk_Point ,nb_fscp_enabled is 0
22:02:41.821 [57106] <4> bpbkar expand_wildcards: INF - Processing /nas1.test.com/Processing_Gen/ARCHIVE/Archive_[01172022134535PM]_
Test_Junk_Point
22:02:41.825 [57106] <8> bpbkar expand_wildcards: WRN - Found no matching file system for /nas1.test.com/Processing_Gen/ARCHIVE/Archive_[01172022134535PM]_
Test_Junk_Point
22:02:41.825 [57106] <4> bpbkar expand_wildcards: end backup for filelist /nas1.test.com/Processing_Gen/ARCHIVE/Archive_[01172022134535PM]_
Test_Junk_Point
22:02:41.826 [57106] <4> bpbkar main: INF - Client completed sending data for backup
22:02:41.826 [57106] <2> bpbkar main: INF - Total Size:0
22:02:41.826 [57106] <2> accl_post_nbfeds_backup_list: Posting Accurate Licensing data
22:02:41.826 [57106] <4> accl_post_nbfeds_backup_list: Master server name: pgrid-1.test.com
22:02:41.826 [57106] <4> post_nbfeds_backup_list: Json String value: [{"virtualName":"","jobid":"","backupId":"arch-1.test.com_1642561360","backupSelectio
n":"/nas1.test.com/Processing_Gen/ARCHIVE/Archive_[01172022134535PM]_
Test_Junk_Point","frontEndDataSizeMb":0.0}]
22:02:41.826 [57106] <2> post_nbfeds_backup_list: Post data URL: netbackup/catalog/frontenddata
22:02:41.843 [57106] <2> getCrlCheckLevelFromConfig: crlCheckFlag value read from bpconf : 1
22:02:41.901 [57106] <4> NBClientCURL::performCurlOperation: HTTP response header : HTTP/1.1 200 OK X-Connection-ID: {44749530-78D4-11EC-AFF9-8B78C02926AA} X-Targe
t-Master: master1.test.com X-Target-Master-ID: 0188bef7-0a09-441c-84a6-355b6c802378 HTTP/1.1 201 Strict-Transport-Security: max-age=31536000;includeSubDomains
X-Frame-Options: DENY X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block X-Request-ID: D555B28E4C19FFC3 Content-Length: 0 Date: Wed, 19 Jan 2022 03:0
2:41 GMT
22:02:41.903 [57106] <16> bpbkar Exit: ERR - bpbkar FATAL exit status = 71: None of the files mentioned in the file list exist or may not be accessible
22:02:41.903 [57106] <4> bpbkar Exit: INF - EXIT STATUS 71: None of the files mentioned in the file list exist or may not be accessible
22:02:41.903 [57106] <2> bpbkar Exit: INF - Close of stdout complete
22:02:41.903 [57106] <4> bpbkar Exit: INF - setenv FINISHED=1

 

  • Hi bc1410 

    The backup selection in the policy is not correct. Refer to the following article which should explain what is required to use wildcards:  https://www.veritas.com/support/en_US/article.100038824

    One question is the backup selection  meant to target a single folder or multiple folders? As you can see in the error messages, NetBackup is attempting to process the brackets as a wildcard selection.  Which might match Archive_1_Test_Junk_Point and Archive_P_Test_Junk_Point

    If it is only a single folder, then you may need to change the backup selection in NetBackup to something like this:

    /nas1.test.com/Processing_Gen/ARCHIVE/Archive_?01172022134535PM?_Test_Junk_Point

    Also you may need to tick the "Follow NFS" box in the policy atttributes (it may not be as your selection is within the NFS volume, but if the above selection cchange still produces status 71, then look to this). 

    Cheers
    David

     

    • bc1410's avatar
      bc1410
      Level 6

      the users used the " [  "  and " ] " characters as part of the data path around a time stamp.   

      Im able to do this via the command line using "\" backlash in front of the [ which is usually a wildcard character.  Per a Veritas tech note:

      To use special or wildcard characters literally (that is, as nonwildcard characters), precede them with a backslash (\). For example, assume the brackets in the following are to be used literally:
      /home/abc/fun[ny]name
      In the exclude list, precede them with a backslash as in
      /home/abc/fun\[ny\]name

      A backslash (\) acts as an escape character only when it precedes a special or wildcard character as in the above example. This means that NetBackup normally interprets a backslash literally and it is a legal character to use in pathnames

      There are multiple folder under the Archive_[01172022134535PM]_Test_Junk_Point directory /nas1.test.com/Processing_Gen/ARCHIVE/Archive_[01172022134535PM]_Test_Junk_Point

      • bc1410's avatar
        bc1410
        Level 6

        I also do have the "follow NFS" checked within the attributes.    The command line uses the backup schedule type "User Backup" but when using the admin console to kick off the backup manually the "User Backup" type is not an option.  ONLY the FULL and Cumulative types.  So not sure if I can only use the backslash to act as an escape charater in a User Type schedule of a backup??

        backslash (\) acts as an escape character only when it precedes a special or wildcard character as in the above example. This means that NetBackup normally interprets a backslash literally and it is a legal character to use in pathnames