When creating a task for backing up a folder with files using NetBackup, i need configure automatic deleting files when the backup is finished. But I can't find the function to delete files in the folder source. I looked in the manuals of NetBackup admin, I did not find such functionality anywhere. Please tell me there is a function to delete files in the source folder after the backup task is completed?
Solved! Go to Solution.
For whatever it's worth, I would recommend you reconsider how you're going to architect this process. Having NBU in charge of deleting someone's files means that YOU are taking responsibility for whether they should be deleted or not. If NBU hiccups or there's some weird fencepost bug and something gets deleted without first being backed up, that's on you.
I would highly recommend having the app owner (whomever that is) throw together a quick script to call a manual backup of that directory at their need, and then once they are convinced that their data is sufficiently protected they can delete their own files. You can even show them how to call bplist from their side post-backup to validate which files have been protected to help them make their decision.
It's called "NetBackup" though, not "NetDelete." Never take ownership of deleting someone's files, that way lies madness and leads to long meetings with Upper Management. It's also been known to be a RGE (Resume Generating Event) on occasion. =)
Best of luck.