♻: move mariadb data
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m41s
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m41s
This commit is contained in:
@@ -22,7 +22,7 @@ if [ ! -d $backup_dump_path ] ; then mkdir -p $backup_dump_path ; fi
|
||||
# On se deplace dans le dossier, et on purge les fichiers plus vieux que backup_max_age
|
||||
cd $backup_dump_path
|
||||
|
||||
mysqlcheck --all-databases > /srv/mysql/check
|
||||
mysqlcheck --all-databases > /var/lib/mysql/check
|
||||
|
||||
# Pour chaque base a sauvegarder
|
||||
for backup_db_name in $backup_db_list
|
||||
@@ -40,4 +40,3 @@ done
|
||||
|
||||
# On s'assure que nimporte qui ne peut lire les dump
|
||||
chmod a-rwx,u+rwX -R $backup_dump_path
|
||||
|
||||
|
Reference in New Issue
Block a user