13 lines
505 B
Bash
13 lines
505 B
Bash
|
#!/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/
|