Hi Steve,
yes, the backup.pl was written for unix. Your patch looks good.
I'll test/verify it and come back to you....
Greetings,
-Martin
On Mar 24, 2008, at 23:49 , Pulver, Steve wrote:
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Pulver, Steve
Sent: Friday, March 21, 2008 4:09 PM
To: [EMAIL PROTECTED]
Subject: [otrs] OTRS Backup for Windows
Can anyone comment on the following? We were trying to run the
backup script (OTRS is installed on a Windows box) and had to make
the following changes to get it to work properly. We changed the
process for directory change as noted below. Is there another way
we should be getting backups to run? Will this cause issues for us
in the future?
Thanks in advance.
Steve
From: Fisher, Michael
Sent: Thursday, March 20, 2008 5:26 PM
To: Clary, Steve; Pulver, Steve
Subject: OTRS Backup Changes
Steve, Steve--
I changed the backup script from doing the directory change in the
subshell (system) process to directly from perl, and this helped,
because Perl can interpret the hybrid DOS/UNIX-style paths (i.e. "C:/
OTRS/otrs") better than the DOS shell can:
C:\OTRS>cd c:/otrs/otrs
The system cannot find the path specified.
This corrected the failure we had--there might be a cleaner way to
put it into the script, but I was just moving quickly.
--- backup.pl.orig 2008-03-20 17:16:07.716496300 -0400
+++ backup.pl 2008-03-20 17:15:15.795618200 -0400
@@ -182,7 +183,8 @@
# backup Kernel/Config.pm
print "Backup $Directory/Config.tar.gz ... ";
-if (!system("cd $Home && tar -czf $Directory/Config.tar.gz Kernel/
Config.pm Kernel/Config/Files/ZZZA*.pm Kernel/Config/
GenericAgen*.pm")) {
+chdir($Home);
+if (!system("tar -czf $Directory/Config.tar.gz Kernel/Config.pm
Kernel/Config/Files/ZZZA*.pm Kernel/Config/GenericAgen*.pm")) {
print "done\n";
}
else {
@@ -192,7 +194,8 @@
# backup application
if ($FullBackup) {
print "Backup $Directory/Application.tar.gz ... ";
- if (!system("cd $Home && tar -czf $Directory/
Application.tar.gz .")) {
+ chdir($Home);
+ if (!system("tar -czf $Directory/Application.tar.gz ")) {
print "done\n";
}
else {
--
Mike Fisher [EMAIL PROTECTED] 585-275-6884
University of Rochester School of
Nursing
_______________________________________________
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
Support or consulting for your OTRS system?
=> http://www.otrs.com/_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev