Bash Script: MySQL Database backup to AWS S3
MySQL backup bash script which will upload the backup files in AWS s3 bucket.
MySQL backup bash script which will upload the backup files in AWS s3 bucket.
In this tutorial, we will show the manual as well as bash script method to install Nginx on Ubuntu 22.04 LTS server. Nginx which is one the most powerful web server widely use in the IT industry. It can easily handle the thousands of simultaneous connections with the small memory usage. Usage of Nginx: In…
Do you want to know how to install Mariadb 10.04 server on CentOS 8/RHEL 8 ? This post will help you to install MariaDB server. MariaDB is now defacto RDBMS in RHEL/CentOS after its seperation from the MySQL. We have already written other post on Mariadb Server, hence we will directly go to installation section….
In this tutorial we will learn simple bash script to prompt user yes / no for confirmation. It means when user run the script, it will first ask user to confirm by typing yes or no. Once user confirm it take appropriate action. Whereas in case, the user type apart of yes/no , it will…
In this post we will learn, how to print variable value inside single and double quotes. Today I was working on some bash scripting and got this requirement. The script is working wonderfully and as expecting output was also coming. Today we will share this basic bash scripting. Explaining step by step , which gives…
Today in this example we will use bash script. The task is replace keyword with its filename without extension.To accomplish this task we will use bash script.In bash script we will use for loop and sed command .To elaborate this example,lets assume we have 4 files called file1.txt red.txt blue.txt roger.txt The above each file…
send email after mysql backup through bash script in simple way In Facebook group one of the user asked this question “how to send email after mysql backup through bash script”. If you know bash scripting a bit it is just a one liner. It can be write in more advanced form but here I…
How to convert float to integer number In this tutorial we will learn how to convert float to integer number. This tutorial is helpful in bash or shell scripting. For eg. the float value number is 204.47584 and you would like to show only number in integer form means upto 204. So for this use…
In this post we are sharing the script to change group from a file having list of users. You can do the changes in script as per your requirement. The script is also using the /etc/group file to validate group names which could be existing in user supplied group file. Given below is the sample…
In this post learn how to set and reset user password by bash script on Linux systems. It is quite good for Linux System Admin who wants to know how to set and reset user account password with bash script. We have used the standard input (stdin) with passwd command. Advantage: 1. Get the list…
How To Use opt In Bash Script,Example This is an exmaple of how to create bash script with Opt in. #!/bin/bash echo “Select no. for option” OPTIONS=”Hello LinuxTribe Quit” select opt in $OPTIONS; do if [ “$opt” = “Quit” ]; then echo done exit elif [ “$opt” = “Hello” ]; then echo Hello World elif…
How To Use case in Bash Script, Example This is only an example. #/bin/bash echo “Give Full Path where the file is located” read pth echo “Give the file name” read fle if [ -f $pth/$fle ];then echo “$fle file is found in $pth” else echo “$fle file not found in $pth” echo “U r…
In this bash script we will use expect scripting. Expect is known primarily as an indispensable application for system administrators. We use expect generally in case where input from user is required , for eg. ssh, ftp, telnet, sudo etc. Given below is sample bash script which will first ssh the remote host and then…