Feature #11266 ยป 0001-Add-option-to-list-ACB-restores-in-reverse-order.-Fe.patch
| src/etc/inc/acb.inc | ||
|---|---|---|
|
// Create a crontab entry for scheduled backups
|
||
|
// if frequency == "cron", a new crontab entry is created, otherwise any existing
|
||
|
// ACB entry is removed
|
||
|
function setup_ACB($enable, $hint, $frequency, $minute, $hours, $month, $day, $dow, $numman, $pwd) {
|
||
|
function setup_ACB($enable, $hint, $frequency, $minute, $hours, $month, $day, $dow, $numman, $reverse, $pwd) {
|
||
|
global $config;
|
||
|
init_config_arr(array('system', 'acb'));
|
||
| ... | ... | |
|
$config['system']['acb']['day'] = $day;
|
||
|
$config['system']['acb']['dow'] = $dow;
|
||
|
$config['system']['acb']['numman'] = $numman;
|
||
|
$config['system']['acb']['reverse'] = $reverse;
|
||
|
if (strlen($pwd) >= 8) {
|
||
|
$config['system']['acb']['encryption_password'] = $pwd;
|
||
|
}
|
||
| src/usr/local/www/services_acb.php | ||
|---|---|---|
|
<?php
|
||
|
$counter = 0;
|
||
|
if ($config['system']['acb']['reverse'] == "yes"){
|
||
|
$confvers = array_reverse($confvers);
|
||
|
}
|
||
|
foreach ($confvers as $cv):
|
||
|
?>
|
||
|
<tr>
|
||
| src/usr/local/www/services_acb_settings.php | ||
|---|---|---|
|
$pconfig['day'],
|
||
|
$pconfig['dow'],
|
||
|
$pconfig['numman'],
|
||
|
$pconfig['reverse'],
|
||
|
$pwd
|
||
|
);
|
||
|
}
|
||
| ... | ... | |
|
))->setHelp("It may be useful to specify how many manual backups are retained on the server so that automatic backups do not overwrite them." .
|
||
|
"A maximum of 50 retained manual backups (of the 100 total backups) is permitted.");
|
||
|
$section->addInput(new Form_Checkbox(
|
||
|
'reverse',
|
||
|
'Reverse List',
|
||
|
'List backups in reverse order',
|
||
|
($pconfig['reverse'] == "yes")
|
||
|
))->setHelp("List backups in reverse order (newest first) when viewing the restore section.");
|
||
|
$form->add($section);
|
||
|
print $form;
|
||