#!/bin/bash
mysqldump -u root -pOk7P1H29It  --all-databases > /root/bd/all-database.sql
mysqldump -u root -pOk7P1H29It hefn > /root/bd/hefn.sql
mysqldump -u root -pOk7P1H29It mel > /root/bd/mel.sql
mysqldump -u root -pOk7P1H29It boletin > /root/bd/boletin.sql
mysqldump -u root -pOk7P1H29It hef_j3 > /root/bd/hef_j3.sql
mysqldump -u root -pOk7P1H29It hejs> /root/bd/hejs.sql
mysqldump -u root -pOk7P1H29It tradukoteko1 > /root/bd/tradukoteko1.sql
mysqldump -u root -pOk7P1H29It diccionario > /root/bd/diccionario.sql
mysqldump -u root -pOk7P1H29It openbiblio > /root/bd/openbiblio.sql
mysqldump -u root -pOk7P1H29It openbiblioval > /root/bd/openbiblioval.sql
mysqldump -u root -pOk7P1H29It openbibliozar > /root/bd/openbibliozar.sql
mysqldump -u root -pOk7P1H29It koha_biblioteko > /root/bd/koha_biblioteko.sql
mysqldump -u root -pOk7P1H29It NOVABiblioteko > /root/bd/NOVABiblioteko.sql
mysqldump -u root -pOk7P1H29It kantea > /root/bd/kantea.sql
tar -cvf /mnt/nfs/bd.tar  /root/bd
tar -cvf /mnt/nfs/koha.tar /var/spool/koha
tar -cvf /mnt/nfs/webs.tar /var/www/html
tar -cvf /mnt/nfs/dspace.tar /dspace62
tar -cvf /mnt/nfs/assetstoren.tar /mnt/block/dspace/assetstoren
su - postgres
pg_dump dspace>dspace.bak
exit
cp /var/lib/postgresql/dspace.bak /root/bd/dspace.bak
tar -cvf /mnt/nfs/bd.tar  /root/bd
koha-run-backups
tar -cvf /mnt/nfs/koha.tar /var/spool/koha

