Current time: 07-07-2024, 01:03 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[gelöst] kein backup
Author Message
namdab Offline
Junior Member
*

Posts: 32
Joined: Apr 2009
Reputation: 0
Post: #1
[gelöst] kein backup
Hallo schlaue Community,

wie oben erwähnt gibt es bei mir auf den Server keine Backups.
Hier im Forum wurde das Thema ja schon reichlich angesprochen so das ich ne menge Kontrollieren und ausprobieren konnte aber leider ohne Erfolg.

Der Cron wird vernünftig ausgeführt aber es werden nur weblink.tld-backup-2009.04.27-022438.tar.bz2.log files angelegt wo folgende Meldung rein geschrieben wird.

Quote:/bin/tar: .: Datei hat sich beim Lesen geändert

Nun kommt aber die Frage auf welche Datei beim Lesen geändert wurde, denn auch bei angelegten Webseiten die keinen Inhalt besitzen und nur mit der standart index.html von ispc ausgestattet sind werden die logfiles mit der Meldung angelegt.
Über ftp habe ich das anlegen eines backups beobachtet.
Es wurde komplett erstellt und als das tar.bz2 Archiv erstellt war wurde es allen anschein einfach gelöscht.

in /var/log/ispc/ispcp-backup-all-mngr.log wird keine Meldung eingetragen.
in /var/log/ispc/ispcp-backup-ispcp-mngr.log sind folgende Meldungen vorhanden
Quote:Name "main::db_user" used only once: possible typo at /var/www/ispcp/engine/backup/ispcp-backup-ispcp line 247.
Name "main::db_pwd" used only once: possible typo at /var/www/ispcp/engine/backup/ispcp-backup-ispcp line 248.

Die einträge in der cron.d sind folgende:
Quote:*/60 3-5 * * * root /var/www/ispcp/engine/backup/ispcp-backup-all yes &>/var/log/ispcp/ispcp-backup-all-mngr.log
*/60 3-5 * * * root /var/www/ispcp/engine/backup/ispcp-backup-ispcp noreport &>/var/log/ispcp/ispcp-backup-ispcp-mngr.log

Kann mir von euch jemand einen Tip geben wie ich das erstellen der backups wieder zum laufen bekomme?

Danke.

Edit: Verwendetes System:
Debian Lenny 5.0
Omega 1.0 stable
(This post was last modified: 04-29-2009 07:19 PM by namdab.)
04-27-2009 10:53 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: kein backup
Aktiviere bitte mal den DebugModus in der /etc/ispcp/ispcp.conf und lass das Backup nochmals laufen.
Ich würde zudem mal auf .gz beim Backup umsteigen. Kannst Du ebenfalls ini der Config vornehmen.

Greez BeNe
04-27-2009 03:42 PM
Visit this user's website Find all posts by this user Quote this message in a reply
namdab Offline
Junior Member
*

Posts: 32
Joined: Apr 2009
Reputation: 0
Post: #3
RE: kein backup
Hallo,

ich bin deine Anweisungen befolgt, habe das Format gz gewählt, den Debug Modus aktiviert und das Backup nochmals durch laufen lassen.

Es wird auch ein error ausgegeben und auf die website.tld-backup-2009.04.27-110940.tar.gz.log verwiesen wo aber nur die Meldung
Quote:/bin/tar: .: Datei hat sich beim Lesen geändert.
ausgegeben wird.

Hier mal ein auszug aus der /var/log/ispc/ispcp-backup-all-mngr.log.
Quote:DEBUG: push_el() sub_name: backup_all_start_up(), msg: Starting...
DEBUG: push_el() sub_name: lock_backup_all_system(), msg: Starting...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/usr/bin/touch /tmp/ispcp-backup-all.lock'), msg: Ending...
DEBUG: push_el() sub_name: lock_backup_all_system(), msg: Ending...
DEBUG: push_el() sub_name: get_conf(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: setup_main_vars(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Ending...
DEBUG: push_el() sub_name: setup_main_vars(), msg: Ending...
DEBUG: push_el() sub_name: get_conf(), msg: Ending...
DEBUG: push_el() sub_name: backup_all_start_up(), msg: Ending...
DEBUG: push_el() sub_name: database_revision(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: database_revision(), msg: Ending...
DEBUG: push_el() sub_name: backup_all_engine(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: get_human_date(), msg: Starting...
DEBUG: push_el() sub_name: get_human_date(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/usr/bin/mysqldump --add-drop-table --allow-keywords --quote-names -h'localhost' -u'XXXXXX' -p'XXXXXXXXXXXXXXX' 'XXXXXXX' >'/var/www/virtual/website.tld/backups/XXXXX.sql''), msg: Ending...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/bin/gzip --force '/var/www/virtual/website.tld/backups/XXXXXX.sql''), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command(), msg: ERROR: External command '/bin/tar --create --directory=/var/www/virtual/website.tld --gzip --file=/var/www/virtual/website.tld/website.tld-backup-2009.04.27-110940.tar.gz --exclude=logs --exclude=phptmp --exclude=backups --exclude=website.tld-backup-2009.04.27-110940.tar.gz . 2> /var/www/virtual/website.tld/website.tld-backup-2009.04.27-110940.tar.gz.log' returned '1' status !
DEBUG: push_el() sub_name: backup_all_engine(), msg: ERROR: tar returned exit status -1, have a look in /var/www/virtual/website.tld/website.tld-backup-2009.04.27-110940.tar.gz.log
DEBUG: push_el() sub_name: del_file(), msg: Starting...
DEBUG: push_el() sub_name: del_file(), msg: Ending...

.....

DEBUG: push_el() sub_name: unlock_backup_all_system(), msg: Ending...
DEBUG: push_el() sub_name: backup_all_shut_down(), msg: Ending...

Das ganze hab ich mal auf eine Webseite begrenzt, das die Meldung bei jeder Seite ausgegeben wird, nur halt mit anderen Nutzerdaten.

Ich hab auch zum test den Apache gestoppt und das Backup wiederholt aber auch da tritt das besagte Problem auf.

Kannst du oder jemand anderes mir vielleicht sagen warum der Befehl löschen ausgeführt wird?

Danke.
04-27-2009 07:49 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #4
RE: kein backup
Und Du hast auch die Stable und kein NighlyBuild/Trunk am laufen ?

Greez BeNe
04-27-2009 08:46 PM
Visit this user's website Find all posts by this user Quote this message in a reply
namdab Offline
Junior Member
*

Posts: 32
Joined: Apr 2009
Reputation: 0
Post: #5
RE: kein backup
(04-27-2009 08:46 PM)BeNe Wrote:  Und Du hast auch die Stable und kein NighlyBuild/Trunk am laufen ?

Greez BeNe

Jup es ist die 1.0.0 Stable installiert über folgende Quelle:
Quote:wget http://mesh.dl.sourceforge.net/sourcefor....0.tar.bz2


In der /etc/ispcp/ispcp.conf sind folgende Angaben vermerkt:

Quote:BuildDate = 20090225

Version = 1.0.0 OMEGA

CodeName = Priamos
04-27-2009 09:19 PM
Find all posts by this user Quote this message in a reply
ephigenie Offline
Project Leader
*******
Administrators

Posts: 1,578
Joined: Oct 2006
Reputation: 15
Post: #6
RE: kein backup
ruf mal bitte :

"/bin/tar --create --directory=/var/www/virtual/website.tld --gzip --file=/var/www/virtual/website.tld/website.tld-backup-2009.04.27-110940.tar.gz --exclude=logs --exclude=phptmp --exclude=backups --exclude=website.tld-backup-2009.04.27-110940.tar.gz"
auf

und dann sag uns was dein server dazu ausgibt.
(This post was last modified: 04-28-2009 12:45 AM by ephigenie.)
04-28-2009 12:45 AM
Visit this user's website Find all posts by this user Quote this message in a reply
namdab Offline
Junior Member
*

Posts: 32
Joined: Apr 2009
Reputation: 0
Post: #7
RE: kein backup
(04-28-2009 12:45 AM)ephigenie Wrote:  ruf mal bitte :

"/bin/tar --create --directory=/var/www/virtual/website.tld --gzip --file=/var/www/virtual/website.tld/website.tld-backup-2009.04.27-110940.tar.gz --exclude=logs --exclude=phptmp --exclude=backups --exclude=website.tld-backup-2009.04.27-110940.tar.gz"
auf

Hallo,

folgende Meldung wird beim Aufrufen des Befehls ausgegeben.
Quote:/bin/tar: Anlegen eines leeren Archivs wird feige verweigert.
»/bin/tar --help« oder »/bin/tar --usage« gibt weitere Informationen.
04-28-2009 02:56 AM
Find all posts by this user Quote this message in a reply
ephigenie Offline
Project Leader
*******
Administrators

Posts: 1,578
Joined: Oct 2006
Reputation: 15
Post: #8
RE: kein backup
hm ja... bitte nochmal, diesmal aber als root. Danke.
04-28-2009 06:40 AM
Visit this user's website Find all posts by this user Quote this message in a reply
namdab Offline
Junior Member
*

Posts: 32
Joined: Apr 2009
Reputation: 0
Post: #9
RE: kein backup
(04-28-2009 06:40 AM)ephigenie Wrote:  hm ja... bitte nochmal, diesmal aber als root. Danke.

Die Meldung erhalte ich wenn ich als root diesen Befehl ausführen lasse.

Vorgehensweise:
Per SSH mit eingeschränkten Account anmelden
su
Passwort eingabe Enter
Befehl ausführen

Da kann man ja nun wirklich nichts falsch machen.

beste grüße
04-28-2009 07:04 AM
Find all posts by this user Quote this message in a reply
ephigenie Offline
Project Leader
*******
Administrators

Posts: 1,578
Joined: Oct 2006
Reputation: 15
Post: #10
RE: kein backup
nur sicherheitshalber ... website.tld hast du dann auch gegen etwas auf deinem System sinnvolles getauscht ... oder ?

Das "feige" verweigert hat mich wohl ein wenig irritiert...
04-28-2009 07:11 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)