backup problem unter ubuntu --- GELÖST ---

Hilfe zu OTRS Problemen aller Art
Post Reply
mrd23
Znuny newbie
Posts: 18
Joined: 15 Apr 2009, 15:07
Znuny Version: 2.2.7

backup problem unter ubuntu --- GELÖST ---

Post by mrd23 »

Hallo erstmal,
bin neu im forum

Es wird ja ein ein backup skript mitgeliefert(backup.pl) Leider bekomme ich eine Fehlermeldung die ich zwar(denke ich) verstehe, aber nicht lösen kann. so sieht dass dann aus:

Code: Select all

/usr/share/otrs/scripts$ ./backup.pl -d /home/mim/
Can't locate /etc/otrs/database.pm in @INC (@INC contains: /usr/share/otrs/Kernel/cpan-lib /usr/share/otrs /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/share/otrs/Kernel/Config.pm line 25.
BEGIN failed--compilation aborted at /usr/share/otrs/Kernel/Config.pm line 35.
Compilation failed in require at ./backup.pl line 36.
BEGIN failed--compilation aborted at ./backup.pl line 36.
also die daten werden wohl irgendwie nicht gefunden. Allerdings habe ich geprüft und die Daten schon in den jeweiligen Ordnern gefunden.
Muss ich die backup.pl bearbeiten? Muss ich irgendwelche Rechte setzen?
warum er nicht kompilieren kann, is ja klar :D aber warum "Can't locate.."
komme nicht ganz weiter..


bitte um hilfe & rücksicht :)
Last edited by mrd23 on 16 Apr 2009, 10:28, edited 1 time in total.
OTRS 2.3.4
Ubuntu 9.10
Snoopy
Znuny newbie
Posts: 35
Joined: 15 Feb 2007, 20:13

backup problem unter ubuntu

Post by Snoopy »

Hi,

wie sieht es bei Dir unter /etc/otrs/ aus ?

Hier ein Bsp. aus Debian

Code: Select all

<root@s0580otrs001>: /root
# > ll /etc/otrs
insgesamt 40
drwxr-xr-x  3 root root      4096 19. Jan 15:33 .
drwxr-xr-x 69 root root      4096 15. Apr 02:36 ..
-rw-------  1 root root     11298 21. Mär 20:36 cron
-rw-r-----  1 otrs www-data   552 21. Mär 20:35 database.pm
-rw-------  1 root root      1241  7. Mär 2008  fetchmailrc
drwxr-xr-x  3 root root      4096 15. Apr 13:08 Kernel
-rw-r--r--  1 root root      6863 23. Okt 20:38 maintainance.html
Kind regards,
Snoopy

---------
System:
Betriebssystem: Debian GNU/Linux - Squeeze
Kernel: 2.6.32 ( 2.6.32-5-amd64 Debian Repository)
OTRS Version: 3.0.4 (Install per Source)
Datenbank: MySQL 5.1 (5.1.49-3 Debian Repository)
mrd23
Znuny newbie
Posts: 18
Joined: 15 Apr 2009, 15:07
Znuny Version: 2.2.7

backup problem unter ubuntu

Post by mrd23 »

steht haargenau das gleiche drin, also auch von den Rechten her. Und es gibt ja nochmehr config-daten in anderen ordnern...

edit: oder worauf wolltest du hinaus?^^vielleicht hab ich das jetzt falsch verstanden
OTRS 2.3.4
Ubuntu 9.10
Snoopy
Znuny newbie
Posts: 35
Joined: 15 Feb 2007, 20:13

backup problem unter ubuntu

Post by Snoopy »

Hi,

naja dachte wegen dem Can't locate ...

Als welcher User lässt Du die Sicherung laufen?

Unter meinem Debian hier lasse ich das Backup als Root-User rennen und rufe per Crontab einfach das Skript auf

Code: Select all

#!/bin/bash

# Skript zur Datensicherung von OTRS inkl. Datenbank-Dump

# Pfade setzen
PATH=/sbin:/bin:/usr/bin:/usr/sbin: 

/usr/share/otrs/scripts/backup.pl -d /daten/otrs_backup/ -r 5 -t fullbackup

exit 0
Kind regards,
Snoopy

---------
System:
Betriebssystem: Debian GNU/Linux - Squeeze
Kernel: 2.6.32 ( 2.6.32-5-amd64 Debian Repository)
OTRS Version: 3.0.4 (Install per Source)
Datenbank: MySQL 5.1 (5.1.49-3 Debian Repository)
mrd23
Znuny newbie
Posts: 18
Joined: 15 Apr 2009, 15:07
Znuny Version: 2.2.7

backup problem unter ubuntu --- GELÖST ---

Post by mrd23 »

tja manchmal gehört dummheit bestraft*dough*

DANK DIR!!!! :D

Code: Select all

sudo ./backup.pl -d /home/otrs-share/
[sudo] password for ???: 
done
Backup /home/otrs-share//2009-04-16_10-14/Config.tar.gz ... done
Backup /home/otrs-share//2009-04-16_10-14/Application.tar.gz ... done
Dump MySQL rdbms ... done
Compress SQL-file... done
OTRS 2.3.4
Ubuntu 9.10
Post Reply