phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: backup/templates/default script_form.tpl,1.23,1.


From: Bettina Gille <address@hidden>
Subject: [Phpgroupware-cvs] CVS: backup/templates/default script_form.tpl,1.23,1.23.2.1
Date: Fri, 18 Jan 2002 12:15:03 -0500

Update of /cvsroot/phpgroupware/backup/templates/default
In directory subversions:/tmp/cvs-serv15832/templates/default

Modified Files:
      Tag: Version-0_9_14-branch
        script_form.tpl 
Log Message:
update

Index: script_form.tpl
===================================================================
RCS file: /cvsroot/phpgroupware/backup/templates/default/script_form.tpl,v
retrieving revision 1.23
retrieving revision 1.23.2.1
diff -C2 -r1.23 -r1.23.2.1
*** script_form.tpl     22 Dec 2001 03:38:11 -0000      1.23
--- script_form.tpl     18 Jan 2002 17:15:00 -0000      1.23.2.1
***************
*** 67,75 ****
                switch($bintval)
                {
!                       case 'daily':   $dd = '-' . $versions; break;
!                       case 'weekly':  $dd = '-(7*' . $versions . ')'; break;
!                       case 'monthly': $dm = '-' . $versions; break;
                }
!               $rdate = mktime(0,0,0,date('m') . $dm,date('d') . 
$dd,date('Y'));
                return $rdate;
        }
--- 67,75 ----
                switch($bintval)
                {
!                       case 'daily':   $dm = "date('m')"; $dd = 
"date('d')-$versions"; break;
!                       case 'weekly':  $dm = "date('m')"; $dd = 
"date('d')-(7*$versions)"; break;
!                       case 'monthly': $dm = "date('m')-$versions"; $dd = 
"date('d')"; break;
                }
!               $rdate = mktime(0,0,0,$dm,$dd,date('Y'));
                return $rdate;
        }
***************
*** 231,257 ****
                }
  
! // might not work yet!
! 
!               if ($rapp == 'scp')
                {
                        for ($i=0;$i<count($output);$i++)
                        {
!                               $pipe = popen("$rapp $output[$i] 
address@hidden:$rpath/$input[$i]",'w');
!                               fputs($pipe, "$rpwd");
! 
!                               if (!$pipe)
!                               {
!                                       echo 'scp backuptransfer ' . $input[$i] 
. ': failed !' . "\n";
!                                       exit;
!                               }
!                               else
!                               {
!                                       echo 'scp backuptransfer ' . $input[$i] 
. ': success !' . "\n";
!                               }
!                               pclose($pipe);
                        }
                }
  
! // not tested yet! but maybe it works now ...
  
                if ($rapp == 'smbmount')
--- 231,250 ----
                }
  
!               if ($rapp == 'nfs')
                {
+                       $nfsdir = '/mnt';
+                       system("mount -t nfs $rip:$rpath $nfsdir 2>&1 > 
/dev/null");
+ 
+                       check_datedue($nfsdir);
+ 
                        for ($i=0;$i<count($output);$i++)
                        {
!                               system("cp " . $output[$i] . ' ' . $nfsdir . '/ 
2>&1 > /dev/null');
!                               echo 'transfer of ' . $output[$i] . ' through 
nfs: success !' . "\n";
                        }
+                       system("umount " . $nfsdir);
                }
  
! // this works now too...
  
                if ($rapp == 'smbmount')




reply via email to

[Prev in Thread] Current Thread [Next in Thread]