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.2.


From: Bettina Gille <address@hidden>
Subject: [Phpgroupware-cvs] CVS: backup/templates/default script_form.tpl,1.23.2.1,1.23.2.2
Date: Fri, 01 Feb 2002 18:53:02 -0500

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

Modified Files:
      Tag: Version-0_9_14-branch
        script_form.tpl 
Log Message:
added aditional config

Index: script_form.tpl
===================================================================
RCS file: /cvsroot/phpgroupware/backup/templates/default/script_form.tpl,v
retrieving revision 1.23.2.1
retrieving revision 1.23.2.2
diff -C2 -r1.23.2.1 -r1.23.2.2
*** script_form.tpl     18 Jan 2002 17:15:00 -0000      1.23.2.1
--- script_form.tpl     1 Feb 2002 23:52:59 -0000       1.23.2.2
***************
*** 1,3 ****
! #!/usr/bin/php -q
  <?php
        /*******************************************************************\
--- 1,3 ----
! #!{php_path} -q
  <?php
        /*******************************************************************\
***************
*** 8,12 ****
        * Written by Bettina Gille address@hidden                   *
        * -----------------------------------------------                   *
!       * Copyright (C) 2001 Bettina Gille                                  *
        *                                                                   *
        * This program is free software; you can redistribute it and/or     *
--- 8,12 ----
        * Written by Bettina Gille address@hidden                   *
        * -----------------------------------------------                   *
!       * Copyright (C) 2001,2002 Bettina Gille                             *
        *                                                                   *
        * This program is free software; you can redistribute it and/or     *
***************
*** 65,73 ****
        function get_rdate($versions, $bintval)
        {       
                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'));
--- 65,76 ----
        function get_rdate($versions, $bintval)
        {       
+               $dd = date('d');
+               $dm = date('m');
+ 
                switch($bintval)
                {
!                       case 'daily':   $dd = $dd - $versions; break;
!                       case 'weekly':  $dd = $dd - ( 7 * $versions ); break;
!                       case 'monthly': $dm = $dm - $versions; break;
                }
                $rdate = mktime(0,0,0,$dm,$dd,date('Y'));
***************
*** 103,107 ****
        $bemail         = '{bemail}';
  
!       $bzip2          = '/usr/bin/bzip2';
  
        $bcomp          = '{bcomp}';
--- 106,110 ----
        $bemail         = '{bemail}';
  
!       $bzip2          = '{bzip2_path}';
  
        $bcomp          = '{bcomp}';
***************
*** 116,122 ****
        switch ($bcomp)
        {
!               case 'tgz':             $command = '/bin/tar -czf '; break;
!               case 'tar.bz2': $command = '/bin/tar -cf '; break;
!               case 'zip':             $command = '/usr/bin/zip -rq9 '; break;
        }
  
--- 119,125 ----
        switch ($bcomp)
        {
!               case 'tgz':             $command = '{tar_path} -czf '; break;
!               case 'tar.bz2': $command = '{tar_path} -cf '; break;
!               case 'zip':             $command = '{zip_path} -rq9 '; break;
        }
  
***************
*** 125,130 ****
                switch($bsql)
                {
!                       case 'mysql':   $database = '/var/lib/mysql'; break;
!                       case 'pgsql':   $database = '/var/lib/pgsql/data/base'; 
break;
                }
  
--- 128,133 ----
                switch($bsql)
                {
!                       case 'mysql':   $database = '{mysql_dir}'; break;
!                       case 'pgsql':   $database = '{pgsql_dir}'; break;
                }
  
***************
*** 147,153 ****
        if ($bldap == 'yes')
        {
!               chdir('/var/lib');
                $out    = $basedir . '/' . get_date() . '_phpGWBackup_ldap.' . 
$end;
!               $in             = ' ldap';
  
                system("$command" . $out . $in);
--- 150,156 ----
        if ($bldap == 'yes')
        {
!               chdir('{ldap_dir}');
                $out    = $basedir . '/' . get_date() . '_phpGWBackup_ldap.' . 
$end;
!               $in             = ' {ldap_in}';
  
                system("$command" . $out . $in);
***************
*** 170,174 ****
                        chdir('/home/{lid}');
                        $out    = $basedir . '/' . get_date() . 
'_phpGWBackup_email_{lid}.' . $end;
!                       $in             = ' Maildir';
                        system("$command" . $out . $in . ' 2>&1 > /dev/null');
  
--- 173,177 ----
                        chdir('/home/{lid}');
                        $out    = $basedir . '/' . get_date() . 
'_phpGWBackup_email_{lid}.' . $end;
!                       $in             = ' {maildir}';
                        system("$command" . $out . $in . ' 2>&1 > /dev/null');
  




reply via email to

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