Skip to content

Instantly share code, notes, and snippets.

View urlicht's full-sized avatar

Jungsoo Kim urlicht

View GitHub Profile
@urlicht
urlicht / ghost_backup.sh
Last active September 5, 2016 16:55
Bash script to locally backup (copy and tar) Ghost
#!/bin/bash
########## Change variables ##########
BACKUP_LOC='/home/spooky/ghost_backup/' # where to store backup
GHOST_LOC='/var/www/ghost/' # where Ghost lives
######################################
echo $(date)': backup ghost script begin'
# create backup folder
@urlicht
urlicht / ghost_upgrade.sh
Created June 29, 2016 16:57
Bash script to upgrade Ghost blog
#!/bin/bash
########## Change variables ##########
USER_NAME='spooky'
BACKUP_SCRIPT_LOC='/home/'$USER_NAME'/scripts/ghost_backup.sh' # Ghost backup script location
GHOST_LOC='/var/www/ghost/' # where Ghost lives
TEMP_LOC='/home/'$USER_NAME'/' # temporary file location
#######################################
echo $(date)': ghost upgrade script start'