Current time: 11-16-2024, 06:20 PM Hello There, Guest! (LoginRegister)


Post Reply 
Lost backup on the way ro RC7 - how to recover?
Author Message
DaSilva Offline
Member
***

Posts: 302
Joined: Dec 2007
Reputation: 0
Post: #1
Question Lost backup on the way ro RC7 - how to recover?
I have just updated ispCP from RC6 to RC7 and I had a problem with fastcgi. The problem was that I didn't know how to resolve it BEFORE I restarted the server. I forgot that the backups in /tmp are being deleted on a restart. Now I need some configs from the backups (like 00_master.conf) but the backup is lost.
Is there any possibility to recover them?
Thanks in advance.
12-23-2008 09:41 AM
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: #2
RE: Lost backup on the way ro RC7 - how to recover?
maybe in /var/www/ispcp/backup?
12-23-2008 10:02 AM
Visit this user's website Find all posts by this user Quote this message in a reply
DaSilva Offline
Member
***

Posts: 302
Joined: Dec 2007
Reputation: 0
Post: #3
RE: Lost backup on the way ro RC7 - how to recover?
No, strangefully the 00_master.conf from the last config backup looks like this:

Code:
#
# ispCP ω (OMEGA) a Virtual Hosting Control System
#
# @copyright    2001-2006 by moleSoftware GmbH
# @copyright    2006-2008 by ispCP | http://isp-control.net
# @version        SVN: $ID$
# @link            http://isp-control.net
# @author        ispCP Team
#
# @license
#   This program is free software; you can redistribute it and/or modify it under
#   the terms of the MPL General Public License as published by the Free Software
#   Foundation; either version 1.1 of the License, or (at your option) any later
#   version.
#   You should have received a copy of the MPL Mozilla Public License along with
#   this program; if not, write to the Open Source Initiative (OSI)
#   http://opensource.org | osi@opensource.org
#
################################################################################​
#
# Master Begin
#

<VirtualHost {BASE_SERVER_IP}:80>

    ServerAdmin     {DEFAULT_ADMIN_ADDRESS}
    DocumentRoot    {ROOT_DIR}/gui

    ServerName      {BASE_SERVER_VHOST}

    ErrorLog        {APACHE_USERS_LOG_DIR}/{BASE_SERVER_VHOST}-error.log
    TransferLog     {APACHE_USERS_LOG_DIR}/{BASE_SERVER_VHOST}-access.log

    CustomLog       {APACHE_LOG_DIR}/{BASE_SERVER_VHOST}-traf.log traff
    CustomLog       {APACHE_LOG_DIR}/{BASE_SERVER_VHOST}-combined.log combined

    Alias /errors   {ROOT_DIR}/gui/errordocs/

    ErrorDocument 401 /errors/401.html
    ErrorDocument 403 /errors/403.html
    ErrorDocument 404 /errors/404.html
    ErrorDocument 500 /errors/500.html
    ErrorDocument 503 /errors/503.html

    Alias /pma      {ROOT_DIR}/gui/tools/pma/
    Alias /webmail  {ROOT_DIR}/gui/tools/webmail/
    Alias /ftp      {ROOT_DIR}/gui/tools/filemanager/

    <IfModule suexec_module>
           SuexecUserGroup vu2000 vu2000
    </IfModule>

    <Directory {ROOT_DIR}/gui>
        Options -Indexes Includes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

    <IfModule mod_fastcgi.c>
        ScriptAlias /php4/ {PHP_STARTER_DIR}/master/
        ScriptAlias /php5/ {PHP_STARTER_DIR}/master/
        <Directory "{PHP_STARTER_DIR}/master">
            AllowOverride None
            Options +ExecCGI MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>

    <IfModule mod_php4.c>
        <Directory {ROOT_DIR}/gui>
            php_admin_value open_basedir "{WWW_DIR}/{DMN_NAME}/:{CONF_DIR}/:{MR_LOCK_FILE}:/proc/:/bin/df:/bin/mount:{RKHUNTER_LOG}:{CHKROOTKIT_LOG}:{PEAR_DIR}/{OTHER_ROOTKIT_LOG}"
            php_admin_value session.save_path "{ROOT_DIR}/gui/phptmp/"
            php_admin_value upload_tmp_dir "{ROOT_DIR}/gui/phptmp/"
        </Directory>
    </IfModule>
    <IfModule mod_php5.c>
        <Directory {ROOT_DIR}/gui>
            php_admin_value open_basedir "{WWW_DIR}/{DMN_NAME}/:{CONF_DIR}/:{MR_LOCK_FILE}:/proc/:/bin/df:/bin/mount:{RKHUNTER_LOG}:{CHKROOTKIT_LOG}:{PEAR_DIR}/{OTHER_ROOTKIT_LOG}"
            php_admin_value session.save_path "{ROOT_DIR}/gui/phptmp/"
            php_admin_value upload_tmp_dir "{ROOT_DIR}/gui/phptmp/"
        </Directory>
    </IfModule>

</VirtualHost>

#
# Master End
#

but this isn't the same file that there was before the update. It seems to me that the backup script doesn't backup the correct files. Other files than from the directory /apache seem to be correct.
(This post was last modified: 12-23-2008 10:14 AM by DaSilva.)
12-23-2008 10:12 AM
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: #4
RE: Lost backup on the way ro RC7 - how to recover?
this is the "original" (naked) file...

Don't you have other/older backups in the /var/www/ispcp/backup folder?

I have 10 days...

/J
12-23-2008 06:45 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Kika Offline
Member
***

Posts: 293
Joined: Feb 2007
Reputation: 8
Post: #5
RE: Lost backup on the way ro RC7 - how to recover?
First: Create a backup from the ispCP database (and the confs)!!!
After this you could try a new install, and when this is done than load this database and regenerate all mail, domain, subdomain conf.... When you install again the ispcp use the old passwords!

I think that this is the fastest way to solve your problem.
(This post was last modified: 12-23-2008 08:17 PM by Kika.)
12-23-2008 08:13 PM
Find all posts by this user Quote this message in a reply
DaSilva Offline
Member
***

Posts: 302
Joined: Dec 2007
Reputation: 0
Post: #6
RE: Lost backup on the way ro RC7 - how to recover?
@joximu: I have backups from the 12-09-08 to today in the directory but none of them contain the correct 00_master.conf. It is always the same like I posted already. Could there be a bug in the backup script?

@Kika: And how should this help me to get back my customised 00_master.conf? I had some subdomains added for webmail and included a SSL certificate so a new install wouldn't bring me the file back.
12-23-2008 10:01 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: #7
RE: Lost backup on the way ro RC7 - how to recover?
Hi

ah - now I see - only /etc/ispcp is backed up regularly and there is no 00_master.conf

bad :-(
we maybe should change it to backup /etc...

Now you need to get your backup you hopefully made before changing the system....

Sorry - I cannot help.

/J
12-23-2008 10:59 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Kika Offline
Member
***

Posts: 293
Joined: Feb 2007
Reputation: 8
Post: #8
RE: Lost backup on the way ro RC7 - how to recover?
DaSilva: All modification what you did you must do again, but if you loose more config files than i haven't any other idea... Sad (or you could recreate all config file by hand :S )
(This post was last modified: 12-24-2008 12:16 AM by Kika.)
12-24-2008 12:15 AM
Find all posts by this user Quote this message in a reply
DaSilva Offline
Member
***

Posts: 302
Joined: Dec 2007
Reputation: 0
Post: #9
RE: Lost backup on the way ro RC7 - how to recover?
Thanks all, I will have to make it again... Sad
12-27-2008 08:42 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: 2 Guest(s)