ispCP - Board - Support
Lost backup on the way ro RC7 - how to recover? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Update/Upgrade (/forum-44.html)
+--- Thread: Lost backup on the way ro RC7 - how to recover? (/thread-5233.html)



Lost backup on the way ro RC7 - how to recover? - DaSilva - 12-23-2008 09:41 AM

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.


RE: Lost backup on the way ro RC7 - how to recover? - joximu - 12-23-2008 10:02 AM

maybe in /var/www/ispcp/backup?


RE: Lost backup on the way ro RC7 - how to recover? - DaSilva - 12-23-2008 10:12 AM

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.


RE: Lost backup on the way ro RC7 - how to recover? - joximu - 12-23-2008 06:45 PM

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


RE: Lost backup on the way ro RC7 - how to recover? - Kika - 12-23-2008 08:13 PM

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.


RE: Lost backup on the way ro RC7 - how to recover? - DaSilva - 12-23-2008 10:01 PM

@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.


RE: Lost backup on the way ro RC7 - how to recover? - joximu - 12-23-2008 10:59 PM

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


RE: Lost backup on the way ro RC7 - how to recover? - Kika - 12-24-2008 12:15 AM

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 )


RE: Lost backup on the way ro RC7 - how to recover? - DaSilva - 12-27-2008 08:42 AM

Thanks all, I will have to make it again... Sad