This simple Linux BASH script creates a Full-Dump of the database in MySQL on a file, the script can be used later for some cronjobs.
GitHub https://github.com/garanet/MySQL-bkp-script.git
#!/bin/bash
# www.garanet.net
# MySQL Full Backup Bash Script
# https://github.com/garanet/MySQL-bkp-script.git
# Define variables
my_user="root"
my_password="secret"
dumpname="/backup/dump.sql"
# Backup Databases.
/usr/bin/mysqldump -A --lock-tables=false --user=${my_user} --password=${my_password} > ${dumpname};
# Compress dump
tar cfz /backup/dump.sql.tar.gz ${dumpname};
# Delete old
rm ${dumpname};
A FastAPI, SQLAlchemy & Uvicorn to fetch a Google Sheet A FastAPI, SQLAlchemy & Uvicorn to fetch a Google Sheet… Read More
A webtool in Python Flask that creates an LDAP user and his TrueNAS shares pool in ISCSI or NFS. There… Read More
A Terraform configuration that provisions the following infrastructure: A VPC with: Public subnets for external resources. Private subnets for internal… Read More
This website uses cookies.
Read More