Current time: 11-23-2024, 11:34 PM Hello There, Guest! (LoginRegister)


Post Reply 
Nur SQL Backups ohne Web Backups
Author Message
fulltilt Offline
Member
***

Posts: 1,225
Joined: Apr 2007
Reputation: 5
Post: #12
RE: Nur SQL Backups ohne Web Backups
Also ich habe jetzt die Web Backups ausschliessen können:

/var/www/ispcp/engine/backup/ispcp-backup-all

geändert von:
Code:
if ($zip eq "bzip2") {
$backup_filename = "$dmn_name-backup-$date.tar.bz2";

$backup_cmd = "$cmd_tar --create --directory=$dmn_dir --bzip2 --file=$dmn_dir/$backup_filename --exclude=logs --exclude=phptmp --exclude=backups --exclude=$backup_filename . 2> $dmn_dir/$backup_filename.log";
        }
elsif ($zip eq "gzip") {
$backup_filename = "$dmn_name-backup-$date.tar.gz";

$backup_cmd = "$cmd_tar --create --directory=$dmn_dir --gzip --file=$dmn_dir/$backup_filename --exclude=logs --exclude=phptmp --exclude=backups --exclude=$backup_filename . 2> $dmn_dir/$backup_filename.log";
}

nach:
Code:
if ($zip eq "bzip2") {
$backup_filename = "$dmn_name-backup-$date.tar.bz2";

$backup_cmd = "";
        }
elsif ($zip eq "gzip") {
$backup_filename = "$dmn_name-backup-$date.tar.gz";

$backup_cmd = "";
}

Jetzt würde ich gerne die SQL Backups ungepackt (als .sql) erstellen lassen, kann mir hier jemand helfen - was müsste ich hier ändern?
Code:
my ($db_filename, $db_compresscmd) = (undef, undef);

if ($zip eq "bzip2") {
$db_filename = "$db_backup_file.bz2";
$db_compresscmd = "$main::cfg{'CMD_BZIP'} --force \'$db_backup_file\'";
}
elsif ($zip eq "gzip") {
$db_filename = "$db_backup_file.gz";
$db_compresscmd = "$main::cfg{'CMD_GZIP'} --force \'$db_backup_file\'";
}
else {
push_el(\@main::el, 'backup_all_engine()', "Backup algorithm not supported: $zip");
return 1;
}

$rs = sys_command($db_backupcmd);

if ($rs == 0) {
$rs = setfmode("$db_backup_file", $domain_uid, $domain_gid, 0660);

if ($rs != 0) {
unlink($db_backup_file);
}
else {
$rs = sys_command($db_compresscmd);
return $rs if ($rs != 0);
}
return $rs if ($rs != 0);
}
else {
push_el(\@main::el, 'backup_all_engine()', "ERROR: Failed to backup database $db_name");
unlink($db_backup_file);
}
06-07-2008 08:57 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Nur SQL Backups ohne Web Backups - fulltilt - 06-07-2008 08:57 PM

Forum Jump:


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