Skip to content

Instantly share code, notes, and snippets.

Avatar
🌴
On vacation

K4nape

🌴
On vacation
View GitHub Profile
@K4nape
K4nape / Basckup_Web_Database_Server.sh
Created Feb 4, 2020 — forked from hscale/Basckup_Web_Database_Server.sh
Backup Web Server and Database to Google Drive - Bash Script
View Basckup_Web_Database_Server.sh
#!/bin/bash
#Please note - This script tested on Centos-6,7/Redhat-6,7.
#Check Internet Connection
IS=`/bin/ping -c 5 4.2.2.2 | grep -c "64 bytes"`
if (test "$IS" -gt "2") then
internet_conn="1"
#Check Gdrive Software Install Or Not
file="/usr/bin/gdrive"
if [ -f "$file" ]
then