Current time: 11-27-2024, 09:12 AM Hello There, Guest! (LoginRegister)


Post Reply 
Backup Funktion
Author Message
boostex Offline
Junior Member
*

Posts: 16
Joined: Apr 2008
Reputation: 0
Post: #1
Backup Funktion
Hallo Leute ich hätte da mal eine frage zum Thema Backup Funktion von Omega gibt es eine Möglichkeit die Backup Funktion so einzustellen das er nur mysql Backups macht und keine von dem www Verzeichnis des Kunden ??
04-25-2008 03:01 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Backup Funktion
Ja, du kannst das backup-perl-script so verändern, dass es die Datei Backups auslässt.
04-25-2008 04:05 AM
Visit this user's website Find all posts by this user Quote this message in a reply
boostex Offline
Junior Member
*

Posts: 16
Joined: Apr 2008
Reputation: 0
Post: #3
RE: Backup Funktion
Kannst du mir vielleicht sagen wo ich die Datei finden kann ??

Und wie ich die am besten ändere so das diese Ordner nicht in die Backup Funktion
04-25-2008 04:13 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: Backup Funktion
/var/www/ispcp/engine/backup/ispcp-backup-all

Zeile 380:
$rs = sys_command($backup_cmd);
ersetzen mit
$rs = 0;
(ich würde die obere Zeile kommentiert stehen lassen und die untere anfügen...)

Hier nochmals die Zeile
http://www.isp-control.net/ispcp/browser...p-all#L380

ich hab das nicht getestet - es liesse sich sicherlich auch noch verbessern, aber es sollte den tatsächlichen tar Befehl unterdrücken.

/J
04-25-2008 05:11 AM
Visit this user's website Find all posts by this user Quote this message in a reply
grungy Offline
Junior Member
*

Posts: 190
Joined: Dec 2006
Reputation: 6
Post: #5
RE: Backup Funktion
or you could exclude the htdocs dir...add --exclude=htdocs:

Code:
my $backup_cmd = "$cmd_tar --create --directory=$dmn_dir --bzip2 --file=$dmn_dir/$backup_filename --exclude=logs --exclude=cgi-bin --exclude=errors  --exclude=htdocs --exclude=phptmp --exclude=backups --exclude=$backup_filename . 2> $dmn_dir/$backup_filename.log";
(This post was last modified: 04-28-2008 06:20 PM by grungy.)
04-28-2008 06:19 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #6
RE: Backup Funktion
He doesn't want any file backup at all - only the db backup...
04-28-2008 06:27 PM
Visit this user's website Find all posts by this user Quote this message in a reply
grungy Offline
Junior Member
*

Posts: 190
Joined: Dec 2006
Reputation: 6
Post: #7
RE: Backup Funktion
joximu Wrote:He doesn't want any file backup at all - only the db backup...

yes..exclude everything but the db....
04-28-2008 06:28 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #8
RE: Backup Funktion
yes - and the db is in a separate file db-name.sql.gz/bzip2 - so we can disable the tar command... :-)
04-28-2008 07:31 PM
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)