[EMAIL PROTECTED] wrote on 01/08/2007 
05:35:48 PM:

 > You might consider doing a little Perl script rather than shell for the
 > formatting script.  At least that way, you can launch the format command
 > as a pipe, read its output (the 11/25000 followed by a bunch of ^H
 > characters to back up over itself), parse it, then output something more
 > meaningful for a web page, like a bar of stars or somesuch.

That's true.  I don't know perl, but I could do it with python... 
Interesting thought, thank you.

 > Adding new functions to the BackupPC interface isn't very hard.

That part I've already done, but I cheated:  I just used config.pl to 
add the two items as a link.  Works plenty well enough for me, and I 
don't have to maintain any BackupPC-provided HTML files.

 > As for the advisability of formatting from a web page... Let's just say
 > you have a lot of trust in your users.  :-)

The drive they're formatting is *not* the drive that the BackupPC pool 
is stored on.  My BackupPC servers have two hard drives:  hda has two 
partitions, one for root and one for the BackupPC pool.  hdc is mounted 
in a removable IDE tray.  I have a cron job that performs an archive to 
this drive daily.  This is how I handle off-site storage of backup data. 
  So there's little harm if a malicious user formats this drive.  All 
that's lost is an archive job, which the user can re-run from the GUI.

Also, the link requires authentication by Apache, and is as secure as 
anything else in the BackupPC GUI.  Frankly, I would be *much* more 
worried about users browsing the backup data than them formatting the 
removable drive...

And it's less trust in users and more the fact that if it isn't a GUI, 
there are some users who just won't learn how to do it...

Tim Massey


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to