You receive the following message in your retention log:
Unable to delete file '\\QNAP_NAS\Backup\Server01 Full Backup to QNAP NAS_2017011394012.nbd'
*.summary.xml log file:
'exception UnableToDeleteFile : Unable to delete file \\QNAP_NAS\Backup\Server01 Full Backup to QNAP NAS_2017011394012.nbd' checkpointed at Groomer.cpp (1658) thrown from FileSystem\Files.cpp (373) caused by exception Win32Error : Function: DeleteFile, error = 0x8007003B, An unexpected network error occurred. thrown from FileSystem\Files.cpp (368)
Your Retention job may not have permissions to the destination network storage device if that storage device is a network share/NAS. Retention jobs do NOT have a way to specify Network Permissions like a Backup Job can. Retention jobs have no way of linking to your Network Device (network storage device) that you may have added to NovaBACKUP in the "Device" tab as a "Network Device". This means that you will have to edit your Retention job script and specify the Network Permissions manually, otherwise when the Retention job runs it will fail to delete appropriate files.
The workaround for this is to adjust your Default Settings to target a Network Device added to the Device tab, then recreate your retention job by selecting [New] in the Backup Retention dialog. Follow this [Guide] Backup to NAS (with Retention) Walkthrough - Configure a Network Device - Part 1 to create a Network Device for NovaBACKUP and adjust default settings.
Here are the instructions to manually adjust the existing retention job:
1. First of all you will have to create a Network Device for your network share, NAS or Windows Server share.
Follow this [Guide] Backup to NAS (with Retention) Walkthrough - Configure a Network Device - Part 1 to create a Network Device for NovaBACKUP and adjust default settings.
NOTE: If you already have created your Network Device for this network share AS WELL AS targeted this device to create your File Backup job with, then this step is not required as it means you A. have already created your Network Device in NovaBACKUP's Device tab for the network storage device, and entered in the appropriate admin permissions for this network device, and B. specified that particular Network Device for the "Backup Destination" selection field.
2. After you have your Network Device added to NovaBACKUP, verified by clicking the "Device" tab and looking for the named Network Device that you added, you will create your "File Backup" job to utilize that Network Device as the "Backup Destination" selection field. Otherwise the network permissions for that network device (NAS/Share) will NOT pass through to the File Backup job.
Locate File Backup and Retention Job Scripts
The default path jobs save to is:
In the "Backup" folder you will find your File Backup job(s), the job files will be files with .nbk file extensions (if you have the "Show file extensions" option turned on in Windows Explorer you will see that). These script files are editable by notepad or other such text file editor. You will be opening the File Backup script and matching Retention job script with a text editor.
Open File Backup job script:
1. Open the File Backup job .nbk file in notepad, you will see a [device] section, select all of the text from that section and do a right-click "Copy". This will copy all of the text contained in the [device] section to allow you to paste it in to the matching Retention job in the next step.
The default storage location for File Backup jobs in NovaBACKUP is:
Example text to copy (you will copy the entire [device] section of text from the File Backup script):
[device] SessionLogicalId=0 SessionName=Server01 Full Backup to QNAP NAS SessionId=0000000000000000000000000000000000000000 MediaLogicalId=0 MediaExtension=ndf MediaName=Server01 Full Backup to QNAP NAS MediaId=0000000000000000000000000000000000000000 DevicePassword=2da5d37bf3a22fae6ffe68c4d2929d2e DeviceUsername=admin DeviceDomain= DeviceUnit=\\qnap_nas\Backup DeviceName=QNAP_NAS_Backup DeviceId=0900dcfe0b0000f0c04ce957cf688b4107000000 DeviceClassId=ntwk://
Open Retention job script:
2. Open the matching Retention script (.NBK) file in notepad, you will see a [device] section, select all of the text from that section and do a right-click "Paste".
The default storage location for Retention jobs in NovaBACKUP is:
Example text to overwrite (you will overwrite the entire [device] section of text in the Retention script):
[device] SessionLogicalId=0 SessionName=Server01 Full Backup to QNAP NAS - Retention SessionId=0000000000000000000000000000000000000000 MediaLogicalId=0 MediaExtension= MediaName=My Media MediaId=0000000000000000000000000000000000000000 DevicePassword=6ffe28c4d2929d5c DeviceUsername= DeviceDomain= DeviceUnit= DeviceName= DeviceId=0000000000000000000000000000000000000000 DeviceClassId=
Save changes to the Retention job script:
Once you paste over the entire contents of the [device] section, you will Save the Retention script file in notepad. Make sure to keep the existing filename ending in .nbk. You have now overwritten the [device] section with the information from the File Backup job to the matching Retention job. This will have set the necessary Network Device Permissions for the Retention job so that it can now delete files on your target network device used by your matching File Backup job.
Test the Retention job:
You can run your Retention job manually now from the Schedule tab in NovaBACKUP by right-clicking on the Retention job that you edited above, and choosing the "Run Now..." option to start it manually. Look to see if the files now delete on your Network storage location where your Backups exist.