
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