Skip to contentSkip to conversation

tar & CGI

DISCUSSION Luca Ferrari 2 participants 2 messages Mar 1, 2004

lore
Share & tools
lore
#0 lore raw

Hello,
I'm developing a perl CGI as a front-end to tar. I'd like to use it as an interface for tape backups on my server, but I've got several questions that I hope someone can answer to:
1) how to give root permissions to my CGI, thus it can read all data it must backup?
2) since I'd like to use tar in multi volume mode (-M), how to catch within the CGI the end of a tape, so to require to the user a new tape and to restart tar on the new tape?
3) how to keep a trace of all data contained in each tape? In other words, how to save the output of tar depending on the tape number?

Any suggestions are accepted.

Thanks,
Luca

Signature · 2 lines
Luca Ferrari,
[email protected]
#1 lore raw
Quoted 11 lines · Luca Ferrari

Hello,
I'm developing a perl CGI as a front-end to tar. I'd like to use it as an interface for tape backups on my server, but I've got several questions that I hope someone can answer to:
1) how to give root permissions to my CGI, thus it can read all data it must backup?
2) since I'd like to use tar in multi volume mode (-M), how to catch within the CGI the end of a tape, so to require to the user a new tape and to restart tar on the new tape?
3) how to keep a trace of all data contained in each tape? In other words, how to save the output of tar depending on the tape number?

Perhaps you want to have a look at how that is all done in Webmin:
http://www.webmin.com/

--
Scott