
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/