This file contains hidden or 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 | |
# | |
echo "Create backup of ghost ... please wait ..." | |
DINFO=`date +%F` | |
GHOST_DIR=/path/to/ghost/install | |
DB_NAME=NAME-OF-YOUR-GHOST-MARIA-DB | |
BACKUP_DIR=/opt/backups | |
tar -cjPf $BACKUP_DIR/$DINFO-ghost-backup.tar.bz2 "$GHOST_DIR/content/" | |
echo "Backup created." | |
echo "Delete all backups except the last 5 ... please wait ..." |
This file contains hidden or 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
## | |
# Caching | |
## | |
# sets the proxy cache path location, max size 2g | |
proxy_cache_path /var/cache/nginx/ levels=1:2 keys_zone=blog_cache:10m max_size=2g inactive=120m; | |
# add a cache HIT/MISS header | |
add_header X-Proxy-Cache $upstream_cache_status; |