BackupPC-users

Re: [BackupPC-users] How to Prevent Users Starting a Backup

2008-11-14 20:19:16
Subject: Re: [BackupPC-users] How to Prevent Users Starting a Backup
From: Craig Barratt <cbarratt AT users.sourceforge DOT net>
To: "samk-01 AT ntlworld DOT com" <samk-01 AT ntlworld DOT com>
Date: Fri, 14 Nov 2008 17:17:14 -0800
Samk writes:

> I was hoping to find a solution which prevents the user from starting
> a backup but allows for a restore whenever required.

There isn't a configuration option that allows this.

I'd recommend just editing lib/BackupPC/Lang/en.pm (assuming you
are using english), and remove these lines:

    \${h2("User Actions")}
    <p>
    <form name="StartStopForm" action="\$MyURL" method="get">
    <input type="hidden" name="host"   value="\$host">
    <input type="hidden" name="action" value="">
    \$startIncrStr
    <input type="button" value="\$Lang->{Start_Full_Backup}"
     onClick="document.StartStopForm.action.value='Start_Full_Backup';
              document.StartStopForm.submit();">
    <input type="button" value="\$Lang->{Stop_Dequeue_Backup}"
     onClick="document.StartStopForm.action.value='Stop_Dequeue_Backup';
              document.StartStopForm.submit();">
    </form>
    </p>

This doesn't actually disable user requested backups - it just
removes the CGI buttons.  An enterprising use could still
figure out the URL to start a backup.

Craig

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

<Prev in Thread] Current Thread [Next in Thread>