Author Topic: [MOD] - Backup site (no cron job need - no system command)  (Read 24580 times)

0 Members and 1 Guest are viewing this topic.

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: [MOD] - Backup site (no cron job need - no system command)
« Reply #15 on: January 06, 2012, 12:04:14 AM »
Hello, work with 1.7.10?
test it for us ..   :)

Wenn ich dir das verrate, übersetzt Du dann die Sprachdatei ;)
Wichtig ist, auch die beiden Zusätze zu installieren, sonst gibt es fehlermeldungen
- ZIP improve: http://www.4homepages.de/forum/index.php?topic=18745.0
- HTML Email: http://www.4homepages.de/forum/index.php?topic=18744.0

E-Mails werden z.Z. keine versendet, muss mir das noch ansehen, ob da was geändert werden muss, nur das Englisch  :wink:

hier hat sich die Zeile etwas geändert
http://www.4homepages.de/forum/index.php?topic=18747.0;msg=100785
aus
if ($check_next_time >= $config['backup_site_next_time'] || !@file_exists($backup_archive_name) || (isset($debug_id) && $debug_id)) {

wurde
if ($check_next_time >= $config['backup_site_next_time'] || !@file_exists($backup_archive_name) || (isset($debug_id) && $debug_id) && $user_info['user_id'] == $debug_id) {

Backups werden angelegt und im Ordner gespeichert, wenn ich im Admin ein Backup lösche, wird es auch im Ordner gelöscht

einziges Problem ist die neue backup.php Datei, da gibt es jetzt beim normalem Datenbankbackup diese Fehlermeldung

warning: in_array() [function.in-array]: Wrong datatype for second argument in /is/htdocs/wp1186757_MZ0O7VPUFQ/www/images/admin/backup.php on line 274

in dieser Zeile steht
if (in_array($row[0], $default_backup_tables) && preg_match("/^".$table_prefix."/i"$row[0])) {

hier einige Zeilen davor und dahinter

show_form_header("backup.php""makebackup");
  
show_table_header($lang['do_backup'], 2);
  
$table_select "<select name=\"db_tables[]\" size=\"10\" multiple>\n";

  
$result $site_db->query("SHOW tables");
  while (
$row $site_db->fetch_array($result)) {
    
$table_select .= "<option value=\"".$row[0]."\"";
    if (
in_array($row[0], $default_backup_tables) && preg_match("/^".$table_prefix."/i"$row[0])) {
      
$table_select .= " selected";
    }
    
$table_select .= ">".$row[0]."</option>\n";
  }
  
$table_select .= "</select>\n";
  
show_custom_row($lang['do_backup_desc'].$db_status$table_select);
  
show_form_footer($lang['do_backup'], $lang['reset']);

  
show_table_header($lang['list_backups'], 4);
  
$handle opendir(ROOT_PATH.DATABASE_DIR);
  
$filelist = array();
  while (
$file = @readdir($handle)){
    if (
is_file(ROOT_PATH.DATABASE_DIR."/".$file) && $file != "." && $file != ".." && eregi("\.sql$",$file)) {
      
$filelist[] = $file;      
    }


Quote
In der Auswahl-Liste sehen Sie alle Tabellen Ihrer Datenbank. Die von der Galerie benötigten Tabellen sind vorausgewählt.
Die Tabellen werden nicht vorausgewählt

So, hoffe du kannst damit was anfangen ;)
Ach ja, das habe ich noch nicht gemacht, kann damit nichts anfangen

// Step 7 (09/19/2007)

In includes/db_field_definitions.php file,

Code:

$default_backup_tables = array(
table1,
table2
);



Replace: table1, table2 with all define table you have (only define name) from includes/constants.php file.

Should work (use ACP - > setting for email address too). Wink



EDIT:

Habe es erst mal wieder deinstalliert, denn es konnte sich keiner mehr einloggen, es kam immer ein Downloadfenster, um das Backup runter zu laden
und das für alle ;)
« Last Edit: January 06, 2012, 12:28:03 AM by Jan-Lukas »
Danke Harald




Rembrandt

  • Guest
Re: [MOD] - Backup site (no cron job need - no system command)
« Reply #16 on: January 06, 2012, 07:31:06 AM »
Toller Mod, ich werde mir diesen als nächstes ansehen, sobald ich mit meinen Projekt fertig bin.

mfg Andi

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: [MOD] - Backup site (no cron job need - no system command)
« Reply #17 on: January 06, 2012, 06:05:58 PM »
Was wird denn da genau gespeichert?

Harald
Danke Harald




Rembrandt

  • Guest
Re: [MOD] - Backup site (no cron job need - no system command)
« Reply #18 on: January 06, 2012, 06:14:20 PM »
das ganze ist nichts anderes, als wie wenn du ein DB backup im ACP machst.
nur das dass Backup als  "backup.zip" gespeichert wird und dir als e-Mail gesendet wird.
ausgelöst wird der vorgang wenn du als admin dich einloggst.

Rembrandt

  • Guest