|
@@ -1,3 +1,6 @@
|
|
|
-# mariadb-backup
|
|
|
+# Usage
|
|
|
|
|
|
-Simple shell script to back-up MariaDB and MySQL databases from within a container
|
|
|
+1. Create a user with docker access rights
|
|
|
+2. Mount filesystem "backup" to /mnt in the MySQL or MariaDB container
|
|
|
+3. Create a cronjob on the docker host along the lines of:
|
|
|
+ 00 0,12 * * * docker container exec <containername> /mnt/backup.sh
|