
Dear list, I am running OTRS on a Windows Server 2003 machine and want to make a backup on my windows machine. I have been thinking about making a batch file which executes perl and calls the /scripts/backup.pl. But isn't there an easier way to backup OTRS?? Thanks, Peter

Peter Hoogkamer wrote:
I am running OTRS on a Windows Server 2003 machine and want to make a backup on my windows machine. I have been thinking about making a batch file which executes perl and calls the /scripts/backup.pl. But isn't there an easier way to backup OTRS??
What's not easy about that? Nils Breunese.

Hello Nils,
Maybe there could be a build in windows backup script of which I am
not aware of. That's why.
Peter
2007/8/22, Nils Breunese (Lemonbit)
Peter Hoogkamer wrote:
I am running OTRS on a Windows Server 2003 machine and want to make a backup on my windows machine. I have been thinking about making a batch file which executes perl and calls the /scripts/backup.pl. But isn't there an easier way to backup OTRS??
What's not easy about that?
Nils Breunese.
_______________________________________________ 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/

Hello Nils,
We run Linux servers as well as Windows servers. But we installed on
Windows. There could be commands in the backup.pl used from linux that
are available on Windows. So that's why I asked. But I'll figure it
out.
Peter
2007/8/22, Nils Breunese (Lemonbit)
Peter Hoogkamer wrote:
Maybe there could be a build in windows backup script of which I am not aware of. That's why.
I don't understand what you mean. But we don't run Windows servers, so maybe that's why.
Nils Breunese.
_______________________________________________ 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/

Peter Hoogkamer wrote:
We run Linux servers as well as Windows servers. But we installed on Windows. There could be commands in the backup.pl used from linux that are available on Windows. So that's why I asked. But I'll figure it out.
Ah ok, so you're saying backup.pl is not working by default under Windows? I wouldn't know, we use a different backup solution: we just dump all databases daily and rsync the complete filesystems off to a remote machine running BackupPC. Nils Breunese.

Hello Nils,
Here is what I thought. When I run backup.pl under Windows it cannot
find "which" and that's a typical linux command for finding something
in the linux system. Windows does not understand this. Oke, different
solution then.
Peter
2007/8/22, Nils Breunese (Lemonbit)
Peter Hoogkamer wrote:
We run Linux servers as well as Windows servers. But we installed on Windows. There could be commands in the backup.pl used from linux that are available on Windows. So that's why I asked. But I'll figure it out.
Ah ok, so you're saying backup.pl is not working by default under Windows? I wouldn't know, we use a different backup solution: we just dump all databases daily and rsync the complete filesystems off to a remote machine running BackupPC.
Nils Breunese.
_______________________________________________ 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/

Peter Hoogkamer wrote:
Here is what I thought. When I run backup.pl under Windows it cannot find "which" and that's a typical linux command for finding something in the linux system. Windows does not understand this. Oke, different solution then.
Ok yeah, then backup.pl won't work under Windows. I recommend backing up your servers anyways, so OTRS would just be backed up with the rest of the machine. Nils Breunese.

Here's what you need to do in order to get backup.pl running on windows. First, install cygwin unix tools for windows. Second, I created a batch file to run the backup.pl... Here's what the batchfile looks like -- set path=%path%;c:\otrs\mysql\bin; cd otrs perl scripts\mybackup.pl -d \\backupserver\backupdata\otrs cd .. I named mine OTRS_Backup.bat and put it in the otrs directory with the other start/stop batch files. I run it with c:\otrs as my current directory. Note that it changes to the c:\otrs\otrs directory in order for the tar commands in the backup.pl to work right. This backs up the mysql data to another machine along with the config data. I only get one error that I haven't been able to resolve yet.. "tar: Kernel/Config/GenericAgen*.pm: Cannot stat: No such file or directory" Not sure why that's failing, but I'm getting the Application data and the mysql data backed up regularly. Good Luck -----Original Message----- From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Nils Breunese (Lemonbit) Sent: Wednesday, August 22, 2007 9:28 AM To: User questions and discussions about OTRS.org Subject: Re: [otrs] backup on server 2003 Peter Hoogkamer wrote:
Here is what I thought. When I run backup.pl under Windows it cannot find "which" and that's a typical linux command for finding something in the linux system. Windows does not understand this. Oke, different solution then.
Ok yeah, then backup.pl won't work under Windows. I recommend backing up your servers anyways, so OTRS would just be backed up with the rest of the machine. Nils Breunese.

Hello Ron,
Thanks for the information. I was looking for this. It is a simple
implementation.
Did you customize the backup.pl file since I see mybackup.pl??
Could you're mistake be here:
Kernel/Config/GenericAgen*.pm
should be:
Kernel/Config/GenericAgen[t]*.pm
So a t behind the GenericAgen
Peter
2007/8/22, Ron DeFulio
Here's what you need to do in order to get backup.pl running on windows.
First, install cygwin unix tools for windows.
Second, I created a batch file to run the backup.pl... Here's what the batchfile looks like --
set path=%path%;c:\otrs\mysql\bin; cd otrs perl scripts\mybackup.pl -d \\backupserver\backupdata\otrs cd ..
I named mine OTRS_Backup.bat and put it in the otrs directory with the other start/stop batch files. I run it with c:\otrs as my current directory. Note that it changes to the c:\otrs\otrs directory in order for the tar commands in the backup.pl to work right.
This backs up the mysql data to another machine along with the config data. I only get one error that I haven't been able to resolve yet.. "tar: Kernel/Config/GenericAgen*.pm: Cannot stat: No such file or directory"
Not sure why that's failing, but I'm getting the Application data and the mysql data backed up regularly.
Good Luck
-----Original Message----- From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Nils Breunese (Lemonbit) Sent: Wednesday, August 22, 2007 9:28 AM To: User questions and discussions about OTRS.org Subject: Re: [otrs] backup on server 2003
Peter Hoogkamer wrote:
Here is what I thought. When I run backup.pl under Windows it cannot find "which" and that's a typical linux command for finding something in the linux system. Windows does not understand this. Oke, different solution then.
Ok yeah, then backup.pl won't work under Windows. I recommend backing up your servers anyways, so OTRS would just be backed up with the rest of the machine.
Nils Breunese.
_______________________________________________ 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/

Peter,
Oh you are right, I did tweak the backup script.
Here's the old code --
# backup application
if ($FullBackup) {
print "Backup $Directory/Application.tar.gz ... ";
if (!system("cd $Home && tar -czf $Directory/Application.tar.gz .")) {
print "done\n";
}
else {
print "failed\n";
}
}
And here's the new code --
# backup application
if ($FullBackup) {
print "Backup $Directory/Application.tar.gz ... ";
if (!system("tar -czf $Directory/Application.tar.gz $Home/.")) {
print "done\n";
}
else {
print "failed\n";
}
}
Your suggestion got me taking a closer look at what was going on with the
genericagent backup..
It appears that the genericagent files I need to backup are in kernel/system
not kernel/config ... See below.
[c:\otrs\otrs]dir *genericagent* /s/b/a
C:\otrs\otrs\bin\GenericAgent.pl
C:\otrs\otrs\Kernel\Config\GenericAgent.pm.dist (this wont
match *.pm since its .dist)
C:\otrs\otrs\Kernel\Config\GenericAgent.pm.examples (this wont
match *.pm since its .examples)
C:\otrs\otrs\Kernel\Modules\AdminGenericAgent.pm
C:\otrs\otrs\Kernel\Output\HTML\otter\AdminGenericAgent.dtl
C:\otrs\otrs\Kernel\Output\HTML\Standard\AdminGenericAgent.dtl
C:\otrs\otrs\Kernel\System\GenericAgent (this appears to contain my
agents)
C:\otrs\otrs\Kernel\System\GenericAgent.pm
C:\otrs\otrs\scripts\test\GenericAgent.t
So here's my additional changes --
Before --
# 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")) {
print "done\n";
}
else {
print "failed\n";
}
After --
# backup Kernel/Config.pm
print "Backup $Directory/Config.tar.gz ... ";
if (!system("tar -czf $Directory/Config.tar.gz $Home/Kernel/Config.pm
$Home/Kernel/Config/Files/ZZZA*.pm $Home/Kernel/System/GenericAgent*")) {
print "done\n";
}
else {
print "failed\n";
}
This seems to work now. Thanks for prodding me to fix this :)
I'm not sure why the script doesn't just backup up the entire OTRS/Kernel
folder. I might change this later to do so.
Ron
-----Original Message-----
From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of
Peter Hoogkamer
Sent: Wednesday, August 22, 2007 10:24 AM
To: User questions and discussions about OTRS.org
Subject: Re: [otrs] backup on server 2003
Hello Ron,
Thanks for the information. I was looking for this. It is a simple
implementation.
Did you customize the backup.pl file since I see mybackup.pl??
Could you're mistake be here:
Kernel/Config/GenericAgen*.pm
should be:
Kernel/Config/GenericAgen[t]*.pm
So a t behind the GenericAgen
Peter
2007/8/22, Ron DeFulio
Here's what you need to do in order to get backup.pl running on windows.
First, install cygwin unix tools for windows.
Second, I created a batch file to run the backup.pl... Here's what the batchfile looks like --
set path=%path%;c:\otrs\mysql\bin; cd otrs perl scripts\mybackup.pl -d \\backupserver\backupdata\otrs cd ..
I named mine OTRS_Backup.bat and put it in the otrs directory with the other start/stop batch files. I run it with c:\otrs as my current directory. Note that it changes to the c:\otrs\otrs directory in order for the tar commands in the backup.pl to work right.
This backs up the mysql data to another machine along with the config data. I only get one error that I haven't been able to resolve yet.. "tar: Kernel/Config/GenericAgen*.pm: Cannot stat: No such file or directory"
Not sure why that's failing, but I'm getting the Application data and the mysql data backed up regularly.
Good Luck
-----Original Message----- From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Nils Breunese (Lemonbit) Sent: Wednesday, August 22, 2007 9:28 AM To: User questions and discussions about OTRS.org Subject: Re: [otrs] backup on server 2003
Peter Hoogkamer wrote:
Here is what I thought. When I run backup.pl under Windows it cannot find "which" and that's a typical linux command for finding something in the linux system. Windows does not understand this. Oke, different solution then.
Ok yeah, then backup.pl won't work under Windows. I recommend backing up your servers anyways, so OTRS would just be backed up with the rest of the machine.
Nils Breunese.
_______________________________________________ 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: 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/
participants (3)
-
Nils Breunese (Lemonbit)
-
Peter Hoogkamer
-
Ron DeFulio