1
0
This repository has been archived on 2023-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
dtux__config_lalis/sauvegarde_bases.sh

13 lines
505 B
Bash
Executable File

#!/bin/sh
echo "sauvegarde bases serveur Lalis"
mysqldump --default-character-set=utf8mb4 -u root -pLalis_toor -Aa -h localhost -r /mnt/lalis/sauvegarde/bases/`date +%g%m%d-%H%M`lalis.sql
echo "nettoyage dossier bases"
find /mnt/lalis/sauvegarde/bases/ -mtime +31 -exec rm -f {} ";"
echo "sauvegarde config nexcloud"
rsync -avP /var/www/html/laliscloud/config /mnt/lalis/sauvegarde/nextcloud/
echo "sauvegarde config dolibarr"
rsync -avP /var/www/dolibarr/htdocs/conf /mnt/lalis/sauvegarde/dolibarr/