initial commit of file from CVS for smeserver-affa on Tue 10 Sep 11:19:50 BST 2024

This commit is contained in:
2024-09-10 11:19:50 +01:00
parent 07b7b1b0d7
commit 5b2d8417a7
42 changed files with 7432 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
#!/bin/sh
mkdir -p /tmp/MySQL-Dumps
chmod 700 /tmp/MySQL-Dumps
for db in $(mysql -BNre "show databases;")
do
mysqldump --add-drop-table --single-transaction -QB "$db" -r /tmp/MySQL-Dumps/"$db".dump || exit 1
chmod 400 /tmp/MySQL-Dumps/"$db".dump
done
exit 0