NDMP restore successful but no data on share
I performed an NDMP restore yesterday and it was successful. The sysadmin contacted me in the morning and said there was no data restored! I checked the share (on HNAS) and indeed it was correct, no data existed on the path.
The restore needed the following: Full + Incr1 + Incr2 + Incr3. Investigating the restore, I did the following:
- Restore a file from Full backup on same path - Successful and file present
- Restore a directory from Full backup on same path - Successful and file present
This confirmed that restore process is working. Then I tried the original restore (Full + Incr1 + Incr2 + Incr3) and also started a file listing for the share every 30 seconds. During the restore the files came in (10,000+ files) but when the restore finished, they were all gone!
Then I tried the restore with (Full + Incr1 + Incr2) only, and it was successful and data was present.
So, it turns out that when Incr3 finished, files were removed! I know NDMP does overwrite files during restore. But can't understand why it deleted files at the end.This is contrary to the Standard/MS-Windows file restores that I have done, where unchanged files are not touched by Incremental images.
I couldn't find anything with a quick browse of the NDMP admin manual, so hoping someone can explain or point me to documentation.
Env: Primary+Media RHEL 7 with NetBackup 9.1.0.1 and NDMP backup with HNAS gateway.