Skip to content

Instantly share code, notes, and snippets.

View yazanmonshed's full-sized avatar
♟️

Yazan Monshed yazanmonshed

♟️
View GitHub Profile
#!/bin/bash
# Notes
# *** need to export GCP Service account insdie the script
# pull data from S3 to local
DIR="/path/to/"
@yazanmonshed
yazanmonshed / remove-docker-logs.sh
Last active October 16, 2022 21:14
Remove Docker Containers Logs
#!/bin/bash
# dir logs files
PATHLOGS=/var/lib/docker/containers/
## This script is only for remove logs for docker containers
## Please make sure to change permission for file such chmod +x remove-docker-logs.sh
# Vlidate path for docker logs
if [ ! -d $PATHLOGS ]; then
#!/bin/bash
#Date Dump Database
#DBDATE=$(date "+%b-%d-%Y-%H-%M-%S")
# call by value variables
DBUSER=$1
DBPASS=$2
DBNAME=$3
#!/bin/bash
# GLOBAL VARABILES
PATHFILES=$1
PATHBACKUPS=$2
FILEBACKUP=$3
JOBNAME=$4
DATE=$(date "+%d-%m-%Y-%H-%M-%S")