From: Chris S. <san...@us...> - 2005-10-27 14:59:54
|
Update of /cvsroot/stack/stack-1-0/scripts/install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14954/scripts/install Modified Files: stackBackup.php Log Message: Index: stackBackup.php =================================================================== RCS file: /cvsroot/stack/stack-1-0/scripts/install/stackBackup.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** stackBackup.php 27 Oct 2005 14:54:12 -0000 1.3 --- stackBackup.php 27 Oct 2005 14:59:16 -0000 1.4 *************** *** 100,105 **** } - show_array($file_names); - ?> --- 100,103 ---- *************** *** 108,116 **** <?php ! $name = 'backup_'.time().'.tgz'; ! $directory = "{$stack_root}/{$stack_tmpdir}/" ! $cmd = 'tar -c -z $directory*.xml > $directory'.$name; ! //$handle = popen($cmd, "r"); ! echo echo "<p>Please download the file <a href='{$stack_web_url}tmp/{$name}'>$name</a>.</p>"; ?> </body> --- 106,120 ---- <?php ! if ('unix' == $stack_os) { ! $name = 'backup_'.time().'.tgz'; ! $directory = "{$stack_root}/{$stack_tmpdir}/"; ! $cmd = "tar -c -z $directory*.xml > $directory$name"; ! echo "<pre>$cmd</pre>"; ! //$handle = popen($cmd, "r"); ! echo "<p>Please download the file <a href='{$stack_web_url}tmp/{$name}'>$name</a>.</p>"; ! } else { ! echo "Files are zipped only on a unix install. Sorry."; ! } ! ?> </body> |