Skip to content

Instantly share code, notes, and snippets.

View K4nape's full-sized avatar
🌴
On vacation

K4nape

🌴
On vacation
View GitHub Profile
@K4nape
K4nape / Basckup_Web_Database_Server.sh
Created February 4, 2020 07:59 — forked from hscale/Basckup_Web_Database_Server.sh
Backup Web Server and Database to Google Drive - Bash Script
#!/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