For security, you have the option of make a backups automatically whit:

1) Create in cron this line, for run the script at 12:00 AM form
Monday to Saturday

# Backups GLPI
00 00 * * 1,2,3,4,5,6 /usr/home/hd1/backups/scripts/Glpi.sh >/dev/null 2>&1

2) Create a script similar to this (this is my script for backup actually)

# cat /usr/home/hd1/backups/scripts/Glpi.sh
#! /bin/sh

echo
# Backup a la base de datos
/usr/local/bin/mysqldump --user=admin --password=mypassword glpi |
gzip > /usr/home/hd1/backups/otros/glpi.sql.gz
echo
# Renombrar el archivo con la fecha
mv /usr/home/hd1/backups/otros/glpi.sql.gz
/usr/home/hd1/backups/otros/glpi-`date +%Y-%m-%d-%H-%M`.sql.gz
echo

# para importarla
# la descomprimimos
# gunzip glpi-2009-02-13-xx-xx.sql.gz
# la importamos (no se puede como root)
# $ mysql --user=admin --password=mypassword glpi
</usr/home/hd1/backups/otros/glpi-2009-02-13-xx-xx.sql

You need adjust the pats for you system.

-- 
"When you understand why you dismiss all the other possible gods, you
will understand why I dismiss yours." - Stephen F Roberts

_______________________________________________
Glpi-user mailing list
[email protected]
https://mail.gna.org/listinfo/glpi-user

Reply via email to