diff --git a/livesupport/src/modules/htmlUI/var/ui_exchange.class.php b/livesupport/src/modules/htmlUI/var/ui_exchange.class.php
index 41c7cb917..73b015372 100644
--- a/livesupport/src/modules/htmlUI/var/ui_exchange.class.php
+++ b/livesupport/src/modules/htmlUI/var/ui_exchange.class.php
@@ -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);
+ }
}
?>
\ No newline at end of file