| Author |
Message |
Swissgen
knows MySQLDumper

Joined: 22 Sep 2011
Posts: 2

|
Posted:
2011-09-22, 04:18 Perl-Cronskipt manuell funktionsfähig - automatisch NICHT |
  |
Hallo Zusammen,
Tut mir Leid, aber ich komme mit Goggle und Forumsuche nicht zum Ziel.
Ich habe MSD und das Perl-Script nach den Vorgaben aus Installationsanleitung und Forenbeiträgen (cgi-bin/, MIME::Lite, Format.pm = alles erschlagen) installiert.
Wenn ich jetzt im Menu "Backup Perl" "Perl-Cronskipt ausführen" aufrufe erhalte ich das gewünschte Ergebnis. Daten gesichert und gepackt an die korrekte Email-Adresse geschickt.
Wenn ich das ganze als Cronjob einrichte erhalte ich ne Email meines Anbieters ohne Anhang:
Quote:
MySQLDumper - Perl CronDump [Version 1.24.4] started successfully (using perl v5.10.0)
Configuration 'mysqldumper.conf.php' loaded successfully from standard configuration.
Compression Library loaded successfully...
FTP Library loaded successfully...
FTP-SSL Library loading failed - FTP-SSL deactivated ...
Mail Library loading failed - Mail deactivated ...
Starting backup using Perlscript version 1.24.4 (using perl v5.10.0)
...
Weil ich kaum Ahnung von Programmierung habe und nicht dahinter komme woran es liegen könnte wäre ich für jegliche Hilfe extrem dankbar.
LG aus der Schweiz
Ingo
|
|
  |
 |
Anzeigen
|
Posted:
Anzeigen |
 |
|
| |
 |
Jens_K
Moderator

Age: 37
Joined: 04 Sep 2007
Posts: 1710
Location: Nähe Bielefeld

|
Posted:
2011-09-22, 09:03 (No subject) |
  |
|
   |
 |
DSB
Developer


Age: 41
Joined: 30 Apr 2004
Posts: 16073
Location: Reichenberg bei Würzburg

|
Posted:
2011-09-22, 15:31 (No subject) |
  |
Wenn es nach den 3 Punkten aufhört, dann hat ein Perl-Timeout das Script abgebrochen.
_________________ Gruß / Greetings, DSB
Teigwaren heißen Teigwaren, weil sie Teig waren.
Diejenigen, die lautstark darüber diskutieren, warum es nicht geht, mögen bitte jene nicht stören, die es gerade tun.
|
|
    |
 |
Jens_K
Moderator

Age: 37
Joined: 04 Sep 2007
Posts: 1710
Location: Nähe Bielefeld

|
Posted:
2011-09-22, 19:32 (No subject) |
  |
|
   |
 |
Swissgen
knows MySQLDumper

Joined: 22 Sep 2011
Posts: 2

|
Posted:
2011-09-22, 23:40 (No subject) |
  |
Hallo Zusammen,
der vollständigkeit halber das komplette Perl Complete Log:
1. automatisch per Cronjob
Quote:
20.09.2011 23:01:27 Configuration 'mysqldumper.conf.php' loaded successfully from Querystring.
20.09.2011 23:01:27 Compression Library loaded successfully...
20.09.2011 23:01:27 FTP Library loaded successfully...
20.09.2011 23:01:27 FTP-SSL Library loading failed - FTP-SSL deactivated ...
20.09.2011 23:01:27 Mail Library loading failed - Mail deactivated ...
20.09.2011 23:01:27 Starting backup using Perlscript version 1.24.4 (using perl v5.10.0)
20.09.2011 23:01:27 Starting to backup database `usr_web...` (1/1).
20.09.2011 23:01:27 Characterset of connection and backup file set to utf8.
20.09.2011 23:01:27 Searching for tables inside database `usr_web...`.
20.09.2011 23:01:27 Optimizing tables:
20.09.2011 23:01:27 Table 1 `jos_aps_options` optimized successfully.
.... usw.
20.09.2011 23:01:28 69 tables have been optimized
20.09.2011 23:01:28 Found 69 tables with 20873 records.
20.09.2011 23:01:28 Starting to dump data into file `usr_web..._1_2011_09_20_23_01.sql.gz`
20.09.2011 23:01:28 Dumping table `jos_aps_options` (Type MyISAM):
20.09.2011 23:01:28 1 inserted records (size of backupfile: 1.57 KB)
.... usw.
Finished backup of database `usr_web...`.
20.09.2011 23:01:29 Starting autodelete function: Keep the latest 3 backup files for each database and delete older ones.
20.09.2011 23:01:29 No file to delete.
20.09.2011 23:01:29 Everythings is done: closing script 20.09.2011 23:01:29
20.09.2011 23:01:29 total time used: 2 sec.
20.09.2011 23:01:29 #EOS (End of script)
2. manuell ausgelöst über "Perl-Cronskipt ausführen"
Quote:
22.09.2011 23:31:05 Configuration 'mysqldumper.conf.php' loaded successfully from Querystring.
22.09.2011 23:31:05 Compression Library loaded successfully...
22.09.2011 23:31:05 FTP Library loaded successfully...
22.09.2011 23:31:05 FTP-SSL Library loading failed - FTP-SSL deactivated ...
22.09.2011 23:31:05 Mail Library loaded successfully...
22.09.2011 23:31:05 Starting backup using Perlscript version 1.24.4 (using perl v5.10.0)
22.09.2011 23:31:05 Starting to backup database `usr_web...` (1/1).
22.09.2011 23:31:05 Characterset of connection and backup file set to utf8.
22.09.2011 23:31:05 Searching for tables inside database `usr_web...`.
22.09.2011 23:31:05 Optimizing tables:
22.09.2011 23:31:05 Table 1 `jos_aps_options` optimized successfully.
.... usw.
22.09.2011 23:31:05 69 tables have been optimized
22.09.2011 23:31:05 Found 69 tables with 20775 records.
22.09.2011 23:31:05 Starting to dump data into file `usr_web..._2011_09_22_23_31.sql.gz`
22.09.2011 23:31:05 Dumping table `jos_aps_options` (Type MyISAM):
22.09.2011 23:31:05 1 inserted records (size of backupfile: 1.56 KB)
.... usw.
Finished backup of database `usr_web...`.
22.09.2011 23:31:07 Sending E-Mail ...
22.09.2011 23:31:07 E-Mail with backup usr_..._1_2011_09_22_23_31.sql.gz sent successfully.
22.09.2011 23:31:07 Recipient/s: swiss.genealogy@....ch
22.09.2011 23:31:07 Starting autodelete function: Keep the latest 3 backup files for each database and delete older ones.
22.09.2011 23:31:08 Autodelete: old backup file usr_web..._1_2011_09_22_03_50.sql.gz deleted.
22.09.2011 23:31:08 Everythings is done: closing script 22.09.2011 23:31:08
22.09.2011 23:31:08 total time used: 4 sec.
22.09.2011 23:31:08 #EOS (End of script)
Der Cronjob läuft über meinen Anbieter spacequadrat.de - nicht extern.
Wenn das Skript in 2 bis 4 Sekunden abgeschlossen ist, kann es dann an einem Perl-Timeout liegen?
LG
Ingo
|
|
  |
 |
DSB
Developer


Age: 41
Joined: 30 Apr 2004
Posts: 16073
Location: Reichenberg bei Würzburg

|
Posted:
2011-09-23, 00:31 (No subject) |
  |
Also läuft alles einwandfrei und Dein einziges Problem ist, dass der E-Mail-Versand nicht funktioniert wenn das Skript per Cronjob aufgerufen wird.
Bitte Deinen Hoster Mime::lite richtig zu installieren.
_________________ Gruß / Greetings, DSB
Teigwaren heißen Teigwaren, weil sie Teig waren.
Diejenigen, die lautstark darüber diskutieren, warum es nicht geht, mögen bitte jene nicht stören, die es gerade tun.
|
|
    |
 |
|
|