Skip to content

Instantly share code, notes, and snippets.

View setioaji's full-sized avatar

Agung Setiyoaji setioaji

View GitHub Profile
@setioaji
setioaji / mysql_import.sh
Last active September 24, 2024 09:15
mysql import dari file gz
#!/bin/bash
#==============================================================================
# SETTINGS
#==============================================================================
# Directory containing the .sql.gz backup files
BACKUP_DIR=/ubuntu/each_db
# MySQL credentials
@setioaji
setioaji / mysql_backup.sh
Created September 23, 2024 06:13 — forked from tleish/mysql_backup.sh
Bash Script to backup all MySQL databases
#!/bin/bash
#==============================================================================
#TITLE: mysql_backup.sh
#DESCRIPTION: script for automating the daily mysql backups on development computer
#AUTHOR: tleish
#DATE: 2013-12-20
#VERSION: 0.4
#USAGE: ./mysql_backup.sh
#CRON:
# example cron for daily db backup @ 9:15 am
@setioaji
setioaji / ubuntu-wireguard-server.md
Last active January 18, 2024 07:03
Setup ubuntu for wireguard server