ispCP - Board - Support
Backups are not working. - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: General discussion (/forum-11.html)
+--- Thread: Backups are not working. (/thread-10859.html)

Pages: 1 2


RE: Backups are not working. - BeNe - 06-22-2010 04:08 PM

Lets start from the beginning!

1.) Check your /tmp/ if there is a .lock file from the Backupscript and delete it
2.) Enable Debug in your /etc/ispcp/ispcp.conf and start the Backup engine again. So we will see why it won´t work.
3.) Check the permissions and of the copied files

Greez BeNe


RE: Backups are not working. - dwander - 06-22-2010 08:49 PM

(06-22-2010 04:08 PM)BeNe Wrote:  Lets start from the beginning!

1.) Check your /tmp/ if there is a .lock file from the Backupscript and delete it
2.) Enable Debug in your /etc/ispcp/ispcp.conf and start the Backup engine again. So we will see why it won´t work.
3.) Check the permissions and of the copied files

Greez BeNe

Hi, i did it ... No lock file, edited conf file. i try to start ispcp-backup-all, but i dont know what input data does it expect ... Got this:

Code:
scooby:/etc/ispcp# /var/www/ispcp/engine/backup/ispcp-backup-all
DEBUG: push_el() sub_name: main(), msg: ERROR: Missing Input Data! Please provid        e appropriate command line parameter(s)!
DEBUG: pop_el() sub_name: main(), msg: ERROR: Missing Input Data! Please provide         appropriate command line parameter(s)!
ERROR: Missing Input Data! Please provide appropriate command line parameter(s)!
DEBUG: push_el() sub_name: unlock_backup_all_system(), msg: Starting...
DEBUG: push_el() sub_name: del_file(), msg: Starting...
DEBUG: push_el() sub_name: del_file(), msg: ERROR: File
'/tmp/ispcp-backup-all.lock' does not exist !



RE: Backups are not working. - joximu - 06-22-2010 08:51 PM

Siehe Einträge im Cron:

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

/J


RE: Backups are not working. - dwander - 06-23-2010 09:56 PM

wooha, i find this by all domains, where are enabled backups (by running backup manually):
Code:
DEBUG: push_el() sub_name: backup_all_engine(), msg: Domain dwander.cz: ERROR: the type of backup (*_full_*) is not allowed!

so, question is: if "_full_" isnt right, should i try "full" ?

Answer is: YES

When i try run bacup after i replaced it, for domains with "full" does backups work fine.

New question is: where can i repair it in ispcp admin, so i never mus do this manually.

Edit:
Should be backup tasks in the root´s crontab ?


RE: Backups are not working. - joximu - 06-23-2010 10:00 PM

The '_full_' value is only for the web-form - the value 'full' is used in the database.

Otherwise there's an error somewhere...

/J


RE: Backups are not working. - dwander - 06-23-2010 11:49 PM

(06-23-2010 10:00 PM)joximu Wrote:  The '_full_' value is only for the web-form - the value 'full' is used in the database.

Otherwise there's an error somewhere...

/J

that i see ..., but where ?


RE: Backups are not working. - joximu - 06-24-2010 08:32 AM

I don't know.
If I (as reseller) edit the domain of a customer an change the backup from full to domain (safe it) and then back - I get the "full" again in the database (ispcp 1.0.5)

Maybe you have a look at this...
/reseller/domain_edit.php?edit_id=1


RE: Backups are not working. - dwander - 06-24-2010 08:32 PM

(06-24-2010 08:32 AM)joximu Wrote:  I don't know.
If I (as reseller) edit the domain of a customer an change the backup from full to domain (safe it) and then back - I get the "full" again in the database (ispcp 1.0.5)

Maybe you have a look at this...
/reseller/domain_edit.php?edit_id=1

i find it in multiple files in gui, but most interresting is hosting_plan_add.php

Code:
'VL_BACKUPD'    => ($hp_backup == '_dmn_') ? 'checked="checked"' : '',
                                        'VL_BACKUPS'    => ($hp_backup == '_sql_') ? 'checked="checked"' : '',
                                        'VL_BACKUPF'    => ($hp_backup == '_full_') ? 'checked="checked"' : '',
                                        'VL_BACKUPN'    => ($hp_backup == '_no_') ? 'checked="checked"' : '',
I thing this is all wrong (line 204/376)


RE: Backups are not working. - joximu - 06-24-2010 09:05 PM

no!

theese values are used to communicate with the gui:
if you load the formular (where you can change the backup-setting) then the "_"-values are used to fill the form.

After saving the new settings, the pure values (without _) are saved to the database:
$allowbackup = preg_replace("/\_/", "", $_POST['backup']);
here the _ are removed...

/J