[otrs-cvs] otrs/scripts backup.pl,1.31,1.32

"CVS commits notifications of OTRS.org" <[email protected]>
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/otrs/scripts
In directory lancelot:/tmp/cvs-serv30745/scripts

Modified Files:
	backup.pl 
Log Message:
 - 2013-01-18 Fixed bug#8944 - do not backup the cache.

Author: mg

Index: backup.pl
===================================================================
RCS file: /home/cvs/otrs/scripts/backup.pl,v
retrieving revision 1.31
retrieving revision 1.32
diff -2 -u -d -r1.31 -r1.32
--- backup.pl	20 Nov 2012 16:04:52 -0000	1.31
+++ backup.pl	18 Jan 2013 14:53:06 -0000	1.32
@@ -1,6 +1,6 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 # --
 # scripts/backup.pl - the backup script
-# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -53,5 +53,5 @@
 if ( exists $Opts{h} ) {
     print "backup.pl <Revision $VERSION> - backup script\n";
-    print "Copyright (C) 2001-2012 OTRS AG, http://otrs.org/\n";
+    print "Copyright (C) 2001-2013 OTRS AG, http://otrs.org/\n";
     print
         "usage: backup.pl -d /data_backup_dir/ [-c gzip|bzip2] [-r 30] [-t fullbackup|nofullbackup]\n";
@@ -214,5 +214,6 @@
 if ($FullBackup) {
     print "Backup $Directory/Application.tar.gz ... ";
-    if ( !system("tar -czf $Directory/Application.tar.gz .") ) {
+    my $Excludes = "--exclude=var/tmp --exclude=js-cache --exclude=css-cache ";
+    if ( !system("tar $Excludes -czf $Directory/Application.tar.gz .") ) {
         print "done\n";
     }
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.