So, you want to write a script to automatically burn some data to a CD?
And who is going to insert the blank CD each time a user uploads some files?
I think you're better of to just setup a normal ftp server (like vsftpd) where your users can upload
stuff.
At regular intervals, you could then create some script to check if the directory where all those backup files are uploaded to reaches a certain size (for instance 600MB), so that you won't burn just a few small files onto each CD, wasting lots of space on the CDs and prompts you to insert a CD if it does.
Writing everything to CD should then be not too difficult.
Bottom line is that you'll need an interactive shell script (ie one that waits for the user to press a key after he/she has inserted a blank CD to write to).
Simple shell scripting should do the trick. See your shell's man page for info on how to read lines from standard input (keyboard). It should be a command like "readline" or something.
As for setting up the FTP server itself, depends on what you want really. I'd advise you to stick to an FTP server that's rather easy to configure, like vsftpd.
|