[otrs-cvs] otrs/scripts backup.pl,1.25.4.1,1.25.4.2
"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-serv30616/scripts
Modified Files:
Tag: rel-3_1
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.25.4.1
retrieving revision 1.25.4.2
diff -2 -u -d -r1.25.4.1 -r1.25.4.2
--- backup.pl 25 Sep 2012 12:44:08 -0000 1.25.4.1
+++ backup.pl 18 Jan 2013 14:52:57 -0000 1.25.4.2
@@ -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