You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2010-03-03 11:10:38

faasa
Member
From: Cordoba, SPAIN
Registered: 2009-11-05
Posts: 28
Website

Database backup

Hi,

Would it be posible to costumize the backup location??

at the moment it is set by default to \files\_dump\, i have checked de backup.php file for the line where it sets the directory but it seems to be set by a value that i cannot find.

// full path
$path = GLPI_DUMP_DIR ; <-- where is this set?

Thank you. Jose

Forgot to ask if it is posible to automate this in future versions.

Last edited by faasa (2010-03-03 11:14:09)


Prod : W2003 R2 - IIS 6.0 - php 5.1.2 - MySQL 5.0.45 - GLPI 0.72.1
MCSE

Offline

#2 2010-03-03 11:19:04

wawa
GLPI-DEV
From: Montpellier / France
Registered: 2006-07-03
Posts: 6,019
Website

Re: Database backup

faasa wrote:

Forgot to ask if it is posible to automate this in future versions.

no it's not GLPI's job to do backup
write a shell script for that or ask you administrator to write it

Offline

#3 2010-07-09 18:04:12

treydock
Member
Registered: 2009-02-26
Posts: 42

Re: Database backup

I too am interested in setting up an automatic backup script.  Currently I have a bash script which will backup the GLPI database and tar up the GLPI directory.  I was thinking of converting the script to PHP and adding it to a webapp portal I'm building.  Before doing that I'd like to know is there a way I can write a PHP or bash script to call the internal functions of the "front/backup.php" ?  I noticed from the code that the backup does much more than a simple 'mysqldump', and I'd prefer to use the built in method.

Correct me if I'm wrong but the actual dump command sends the parameters to the dump function via the URL, maybe?  I can't read the comments as I can't read French.  If someone could help show me what function and parameters actually make the backup I might be able to use that to script a backup using what I assume is the preferred (built-in) method.

Thanks
- Trey


Live Instance >> CentOS 5.6 x64 | Apache-2.2.3 | PHP-5.1.6 | MySQL-5.0.77 | Kernel 2.6.18-194.el5 | GLPI v0.80.2 | OCS 2.0RC3 (~500 units)
Dev Server >> Same as above

Offline

#4 2011-09-28 12:15:57

infomate
Member
Registered: 2011-06-16
Posts: 37

Re: Database backup

for those interested.
under 0.80.x, file paths are configured on /config/based_config.php

cheers

Offline

Board footer

Powered by FluxBB