Skip to content

Instantly share code, notes, and snippets.

View uiaciel's full-sized avatar

uiaciel uiaciel

View GitHub Profile
@uiaciel
uiaciel / backup-manual.sh
Created December 15, 2016 04:44
backup cpanel manualy
#!/bin/bash
# Move Backup Public_html dan Database Harian
# First Source : https://nicaw.wordpress.com/2013/04/18/bash-backup-rotation-script/
# Bash Script untuk backup harian, mingguan dan bulanan
# Bash Script for backup Manually Cpanel Account daily and move to Weekly, Monthly Folder
# Please Check again, Thanks you
# Step 1
BACKUP_DIR=/home/backup
FILES_DIR=/home/USER/public_html
#!/bin/bash
#Generate SSL Key anda CSR
clear
openssl genrsa -out $1.key 2048 ; openssl req -new -sha256 -key $1.key -out $1.csr;
cat $1.csr $1.key