Reposting in hope of feedback

From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Pulver, Steve Sent: Friday, March 21, 2008 4:09 PM To: otrs@otrs.org 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 Michael_Fisher@urmc.rochester.edu 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/

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: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Pulver, Steve Sent: Friday, March 21, 2008 4:09 PM To: otrs@otrs.org 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 Michael_Fisher@urmc.rochester.edu 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

Hi Steve, so I'm back with some news. Yes, I verified it and it's working now. A patch like you posted is included in new OTRS release 2.3 to support also win32. scripts/backup.pl v1.12 scripts/restore.pl v1.6 Many thanks for your posting! -Martin On Mar 24, 2008, at 23:49 , Pulver, Steve wrote:
From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Pulver, Steve Sent: Friday, March 21, 2008 4:09 PM To: otrs@otrs.org 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 Michael_Fisher@urmc.rochester.edu 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
participants (2)
-
Martin Edenhofer
-
Pulver, Steve