Seite 1 von 1

Probleme mit Backup

Verfasst: 21.01.2006 12:58
von kingkong82
hi habe Version 2.0.10 drauf und konnte im Adminbereich immer ein Backup machen
in diesem standen auch alle post,
nur leider ist das jetzt nicht mehr der fall !
(da stehen jetzt nur noch zahlen...) wieso ?
die db ist cirka 40 MB groß und ich hab sie lange nicht mehr gesichert

für mich ist die Sicherung also Sinnlos da nichts weiter drinsteht ?!?

Verfasst: 21.01.2006 13:17
von gloriosa
Hallo,
auch Du solltest Dich

1. mit >>> KB:119 <<<

und

2. dem Updaten auf die aktuelle phpBB Version 2.0.19 (siehe dazu >>> Update-Hilfe <<<) beschäftigen ! :wink:

Verfasst: 21.01.2006 13:30
von kingkong82
die Mysql Doku hab ich gelesen
hilft mir in dem Fall aber nicht weiter,

wie kommt es den das es auf einmal nichmehr geht ?

ps:wenn ich ne neue Version überspiele hab ich angst das was kaputt geht

Verfasst: 21.01.2006 13:51
von dFX
icherlaube mir mal meine frage hir anzustellen:

ich dachte die backup methode im admin bereich
speichert die ganze datenbank. leider fehlen zb, die
einträge für easy-mod oder die attachment mod ?

ist das der regelfall, und wie kann ich MIT DER
ADMIN methode ein komplettes backup hinzaubern ?

danke im voraus

Verfasst: 21.01.2006 13:57
von gloriosa
Hallo,
dazu
kingkong82 hat geschrieben:wie kommt es den das es auf einmal nichmehr geht ?
wirst Du, ohne mehr Informationen zu liefern, keine sinnfällige Antwort bekommen ! :oops:

Für mich gilt : [ externes Bild ]

Dazu
dFX hat geschrieben:ist das der regelfall, und wie kann ich MIT DER
ADMIN methode ein komplettes backup hinzaubern ?
folgendes Snippet

Code: Alles auswählen

##############################################################
## MOD Title: Backup All Tables
## MOD Author: DaveMiller < phpbb_mods@melgir.net > (David E. Miller) http://www.melgir.net/
## MOD Description: Backup all tables in database named with $table_prefix
## MOD Version: 1.0.1
##
## Installation Level: Easy
## Installation Time: 1 Minute
## Files To Edit: admin/admin_db_utilities.php
## Included Files: N/A
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes: This MOD is intended to include all tables which start 
## with $table_prefix in the backup download. This is for any instances of 
## phpBB2 which have added extra tables and want them included without needing 
## to hardcode the table names in the code.
## It has only been tested against versions of MySQL.
##
##############################################################
## MOD History:
##
##   2005-10-30 - Version 1.0.0
##      - created as MOD
##   2005-11-09 - Version 1.0.1
##      - revised for submission
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
admin/admin_db_utilities.php

#
#-----[ FIND ]------------------------------------------
#
			$tables = array('auth_access', 'banlist', 'categories', 'config', 'disallow', 'forums', 'forum_prune', 'groups', 'posts', 'posts_text', 'privmsgs', 'privmsgs_text', 'ranks', 'search_results', 'search_wordlist', 'search_wordmatch', 'sessions', 'smilies', 'themes', 'themes_name', 'topics', 'topics_watch', 'user_group', 'users', 'vote_desc', 'vote_results', 'vote_voters', 'words', 'confirm');
#
#-----[ AFTER, ADD ]------------------------------------------
#
			// 
			// Backup All Tables START
			//
			$sql = "SHOW TABLES LIKE '{$table_prefix}%'";
			$result = $db->sql_query($sql);
			if ( !$result )
			{
				message_die(GENERAL_ERROR, "Error listing table names", "", __LINE__, __FILE__, $sql);
			}
			else
			{
				$tables = array();
				$prefix_length = strlen($table_prefix);
				while ( ($row=$db->sql_fetchrow($result)) )
				{
					// Not all sql engines return key named '0'
					$keys = array_keys($row);
					$key0 = is_array($keys) ? $keys[0] : 0;
					$tbl = $row[$key0];
					if ( strlen($tbl) > $prefix_length )
					{	
						$tables[] = substr($tbl,$prefix_length);
					}
				}
			}
			// 
			// Backup All Tables END
			//
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
einbauen ! :wink:

Verfasst: 21.01.2006 14:06
von dFX
danke dir =)

Verfasst: 21.01.2006 14:44
von kingkong82
dank dir auch :grin:
ich entsinne mich da mal was verändert zu haben... :D

Verfasst: 11.02.2006 16:04
von Pieter2
Zu diesem Schnispel möchte auch ich mich bedanken :D
Habe noch recht wenig Erfahrung mit SQL. Backups sind jedoch absolute Notwendigkeit.

Grüsse

Pieter

Verfasst: 11.02.2006 17:43
von Pieter2
Vielleicht noch eine kleine zusätzliche Frage.

Mit Restore im ACP keine Probleme ?

Grüsse

Pieter