writeable backup file for everybody
This commit is contained in:
parent
e34abdc608
commit
deaefa37f8
1 changed files with 7 additions and 0 deletions
|
@ -133,6 +133,7 @@ class uiExchange
|
||||||
|
|
||||||
if ($check['status'] === 'success') {
|
if ($check['status'] === 'success') {
|
||||||
if (@copy($check['tmpfile'], $target)) {
|
if (@copy($check['tmpfile'], $target)) {
|
||||||
|
@chmod($target,0666);
|
||||||
$this->Base->_retMsg('Copy backup to $1 successfull', $target);
|
$this->Base->_retMsg('Copy backup to $1 successfull', $target);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -247,5 +248,11 @@ class uiExchange
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// restore methods
|
||||||
|
function restore($filename) {
|
||||||
|
$filename='/tmp/backup_20060508.tar';
|
||||||
|
$this->Base->gb->doRestore($this->Base->sessid,$filename);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
Loading…
Add table
Add a link
Reference in a new issue