Forums / Install & configuration / About bpce_backupbdd extension

About bpce_backupbdd extension

Author Message

Alain LEMOINE

Saturday 13 February 2010 6:53:09 am

Hi,

Pascal posted on the forum of the bpce_backupbdd extension:

http://projects.ez.no/bpce_backupbdd/forum/general/how_does_this_extension_work

I ask myself the same questions because I can not to run this extension.
Can anyone provide some help?
Thanks in advance

Alain

Pascal France

Sunday 14 February 2010 12:59:46 am

Hi Alain,

Here what I found:

I added this line to /settings/siteaccess/your_siteaccess/cronjob.ini.append.php:

[CronjobSettings]
Scripts[]=workflow.php
Scripts[]=backup_bdd.php   <== this line

and I did a litle script:

#!/bin/bash
cd /home/xxxx/public_html/;
/usr/local/bin/php runcronjobs.php -s your_public_siteaccess;
exit 0

which is run by cron (as frequently you want).

In order to get a backup, you have to click on the "Create DB dump" button. This creates a creation.txt file in /var/your_siteaccess/log/. The dump is created only if this file exists
Once the script is run, the dump will be created in /var/your_siteaccess/log/

However, nothing appears in the list of dumps (tab backupbdd).
It's the template design/admin/templates/backupbdd/list.tpl which is supposed to create the list of dumps, but the variable $listebdd (defined in modules/backupbdd/list.php) is empty.
That's where I am ...

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Saturday 27 February 2010 9:23:14 am

Hi,

There is really nobody to look at this quite small file:

http://svn.projects.ez.no/bpce_backupbdd/bpce_backupbdd/modules/backupbdd/list.php

to understand why the variable $listebdd is empty in the template list.tpl ?

The purpose is to obtain the list of the realized dumps such as shows this screen shot:

http://projects.ez.no/var/plain_site/storage/images/bpce_backupbdd/93483-1-eng-GB/bpce_backupbdd.png

I specify that, as shows the screen shot, I am under eZP 4.2.0.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Saturday 27 February 2010 11:46:14 am

Hi,

The trouble comes from the fact that the extension of the dump name is .gz and not .sql (under Linux - see line 42 of http://svn.projects.ez.no/bpce_backupbdd/bpce_backupbdd/cronjobs/backup_bdd.php)

In the script:

http://svn.projects.ez.no/bpce_backupbdd/bpce_backupbdd/modules/backupbdd/list.php

we have to replace (line 17):

if ($extension != 'sql') continue;

by:

if ($extension != 'gz') continue;

Besides, the script:

http://svn.projects.ez.no/bpce_backupbdd/bpce_backupbdd/cronjobs/backup_bdd.php

needs a little modification because as it is it does not accept mysql data base access password with accents or white spaces.

Replace (line 40):

$command .= "-p$dbpass";

by:

$command .= "-p\"$dbpass\"";

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Monday 01 March 2010 5:05:11 am

Hi,

Finally, I did a version a little bit enhanced of this useful extension.

Only problem, it is completely in French :-(

The PHP4 and PHP5 versions can be downloaded at the end of the page:

luxpopuli.fr

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

eZ debug

Timing: Jan 18 2025 15:20:26
Script start
Timing: Jan 18 2025 15:20:26
Module start 'content'
Timing: Jan 18 2025 15:20:27
Module end 'content'
Timing: Jan 18 2025 15:20:27
Script end

Main resources:

Total runtime0.9195 sec
Peak memory usage4,096.0000 KB
Database Queries203

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 587.8281180.8281
Module start 'content' 0.00540.7678 768.6563548.2500
Module end 'content' 0.77320.1463 1,316.9063338.1094
Script end 0.9195  1,655.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.4541210.0002
Check MTime0.00150.1637210.0001
Mysql Total
Database connection0.00060.062910.0006
Mysqli_queries0.843291.69342030.0042
Looping result0.00210.22302010.0000
Template Total0.894297.220.4471
Template load0.00190.210420.0010
Template processing0.892397.034720.4461
Template load and register function0.00010.011610.0001
states
state_id_array0.00040.043410.0004
state_identifier_array0.00100.105620.0005
Override
Cache load0.00180.1913650.0000
Sytem overhead
Fetch class attribute can translate value0.00100.110830.0003
Fetch class attribute name0.00160.173650.0003
XML
Image XML parsing0.00050.054530.0002
class_abstraction
Instantiating content class attribute0.00000.001250.0000
General
dbfile0.00200.2224210.0001
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
21content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
7content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 45
 Number of unique templates used: 8

Time used to render debug report: 0.0002 secs