Skip to content

Instantly share code, notes, and snippets.

@ramanadan36
ramanadan36 / ftpbackup.sh
Created September 28, 2018 06:54 — forked from mattmezza/ftpbackup.sh
Super Simple Backup System, a very simple system to automatically backup mysql and ftp.
#!/bin/bash
OUTDIR=$1
BACKUP=$OUTDIR/tmp
NOW=$(date +"%d-%m-%Y")
# clean up tmp dir
rm -f -r $BACKUP/*
# backup a folder of a website
FILE=fs-rootfolder-full.$NOW
@ramanadan36
ramanadan36 / vhost.sh
Created September 28, 2018 06:41 — forked from mattmezza/vhost.sh
bash script to create virtual host vhost with apache httpd and CentOs 7
#!/bin/bash
# This script is used for create virtual hosts on CentOs.
# Created by alexnogard from http://alexnogard.com
# Improved by mattmezza from http://you.canmakethat.com
# Feel free to modify it
# PARAMETERS
#
# $usr - User
# $dir - directory of web files
# $servn - webserver address without www.