writeable backup file for everybody

This commit is contained in:
csikosjanos 2006-05-16 13:31:56 +00:00
parent e34abdc608
commit deaefa37f8

View file

@ -133,6 +133,7 @@ class uiExchange
if ($check['status'] === 'success') {
if (@copy($check['tmpfile'], $target)) {
@chmod($target,0666);
$this->Base->_retMsg('Copy backup to $1 successfull', $target);
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);
}
}
?>