#!/usr/bin/perl
# tta_backup.cgi
# Backup Services with Tarantella 
# STTA Rev. 1.3 Copyright (c) 2001-2002 Jesús Pérez Lorenzo  --- license GNU GPL 

 require './stta-lib.pl';
&foreign_require("proc", "proc-lib.pl");
&headerstta($text{'index_ttabackup'}, "", "ttabackup",undef,1,1,$text{headpage_rigth} );

 print "<hr><p>\n"; 
 print "<table width=100% border>\n";
 print "<tr $tb> <td><b>$text{'titidx_ttabackup'}</b></td> </tr>\n";
 print "<tr $cb> <td><table width=100%>\n";
	print "<hr>\n";
	print "<tr><td>\n";
        $str=$config{'tta_backup'}." ".$config{'tta_backup_dir'};
        $type_cmd="backup";
        if (&run_tta_cmd($str,$type_cmd)) {
                  print "<b>$text{'index_cmderr'}</b>\n"; 
        } else {
                  print "</pre><tr><center><b>-- oOo --</b></center></tr>\n";
        }
 print "<tr>\n";
 print "<tr>\n";
 print "<tr>\n";
 print "</table></table><p>\n";
 &footer($config{'back_return'},$text{'index'});
 do "footer.pl";
 exit;



