04-03-2013 10:24 AM
Folks,
I have my linux netbackup master/media server backing up to disk. The disk location is backupserver:/data/backup_images/
currently the backup images and info files get written as
Solved! Go to Solution.
04-03-2013 04:35 PM
NetBackup create its own file with 0600 permission, and this permission is hard-coded.
NetBackup is dessigned as so since no other users and application should be prevent from touching image files. No trick in NetBackup. You need to sort it by this bandaid method.
04-03-2013 11:12 AM
Why do you want to do this.
You can't do anything with these files, they are the image files created by NetBackup and should not be touched. There is no need for the group to have permissions, they are written they way they are because that is how NBU has been designed. There is no way to adust this within NBU.
It is 100% unsupported to change these, if you suffer an issue due to this (perhapos unlikely but you never know) it may be unfixable.
Martin
04-03-2013 11:33 AM
Without getting into too much detail, I want a user that is in the group root to be able to rsync these files elsewhere.
So again--any help would be appreciated.
lndbrusr
04-03-2013 11:56 AM
I cannot see of what use rsync'ed files will be....
04-03-2013 12:15 PM
You want something that can be Supported by Symantec; maybe this
http://www.symantec.com/en/aa/netbackup-realtime
04-03-2013 12:53 PM
FYI: NetBackup RealTime was end of life'd at the end of 2012.
04-03-2013 01:08 PM
Wow, did not know that, perhaps they should update the page.
04-03-2013 03:27 PM
No way. Just change permission by chmod command at OS level.
For DR, please consider more smart way like AIR(replication accross domain). Without catalog, you need to spend time to import rsync'ed images.
Of cource, rsync on BasicDisk for normal and catalog backup images is possible option.
> RealTime EOL
Really?
04-03-2013 03:49 PM
Really! All versions of NRT were EOSL'd on 12/03/2012.
(Sorry to hijack the thread - carry on)
04-03-2013 03:50 PM
I can write a script that goes through to chown the files the way I want them and crontab it...
My issue with that is that it is kind of a bandaid approach.. I am guessing that somewhere in some netbackup run script the umask can be set to what I want. I'd rather try to solve this problem at its core.
I have tried setting setuid/setgid on the parent directory but that pesky umask command, somewhere in the netbackup run scripts, continues to write the files as rw for owner root only.
04-03-2013 04:17 PM
As a very serious word of warning.
I've seen rsync setups fail (not due to NBU) and data has been lost.
Martin
04-03-2013 04:35 PM
NetBackup create its own file with 0600 permission, and this permission is hard-coded.
NetBackup is dessigned as so since no other users and application should be prevent from touching image files. No trick in NetBackup. You need to sort it by this bandaid method.
04-03-2013 10:35 PM
If you really really really want to copy the files somewhere else consider using "sudo". With sudo you can give a deadly user permission to perform task that would normal require root privileges.
http://en.wikipedia.org/wiki/Sudo or do a "man sudo"
That said I really support the use or AIR or SLP to perform such a operation.
04-03-2013 11:24 PM
Yes, I was thinking of AIR, much better solution and supported.
I do not mean to sound negative, but I get fed up of dealing with what can turn out to be very serious issues due to people trying to change the way NBUY works, and do things they are not meant to do.
M
04-04-2013 06:31 AM
Thank you. That seems to be the way now instead of Realtime.
04-04-2013 06:48 AM
Having the ability to set group rw poses a potential security issue. That is why it is likely designed in this way and is hardcoded.
If you need to do something 'outside the box', then you will need an 'outside the box' method to achieve this!