This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Notes | |
# *** need to export GCP Service account insdie the script | |
# pull data from S3 to local | |
DIR="/path/to/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Date Dump Database | |
#DBDATE=$(date "+%b-%d-%Y-%H-%M-%S") | |
# call by value variables | |
DBUSER=$1 | |
DBPASS=$2 | |
DBNAME=$3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# GLOBAL VARABILES | |
PATHFILES=$1 | |
PATHBACKUPS=$2 | |
FILEBACKUP=$3 | |
JOBNAME=$4 | |
DATE=$(date "+%d-%m-%Y-%H-%M-%S") | |
NewerOlder