Skip to content

Instantly share code, notes, and snippets.

Avatar
🤠
When in doubt, deploy to production

Jay Rogers jaydrogers

🤠
When in doubt, deploy to production
View GitHub Profile
@jaydrogers
jaydrogers / composer.json
Last active Jul 27, 2021
Renovate + WordPress automated dependency update example
View composer.json
{
"name": "roots/bedrock",
"type": "project",
"license": "MIT",
"description": "WordPress boilerplate with modern development tools, easier configuration, and an improved folder structure",
"homepage": "https://roots.io/bedrock/",
"authors": [
{
"name": "Scott Walkinshaw",
"email": "scott.walkinshaw@gmail.com",
@jaydrogers
jaydrogers / _service.md
Last active Sep 1, 2015 — forked from naholyr/_service.md
Sample /etc/init.d script
View _service.md

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
@jaydrogers
jaydrogers / amazons3move-full.sh
Created Apr 3, 2014
CRON Job that will execute moving backup files to Amazon S3. Usage info here: http://serversideup.netmedia-temple-amazon-s3-backup-and-other-linux-servers
View amazons3move-full.sh
#! /bin/bash
# Author: Jay Rogers - jay@521dimensions.com
#IMPORTANT -- CONFIGURATION VARIABLES
BACKUPDOMAIN=backup.mydomain.com
SERVERBUCKETNAME=myserver-pleskfull
#Check to see if there are any SERVER backups to move. If so, move the backups to Amazon S3
if [ "$(find /var/www/vhosts/$BACKUPDOMAIN/s3backups/fullserver/ -name "*.tar")" ]; then
#Make sure that CRON is able to find the AWS Configuration File
View amazons3move-sitesandfull.sh
#! /bin/bash
# Author: Jay Rogers - jay@521dimensions.com
#IMPORTANT -- CONFIGURATION VARIABLES
BACKUPDOMAIN=backup.mydomain.com
SITESBUCKETNAME=myserver-plesksites
SERVERBUCKETNAME=myserver-pleskfull
#Check to see if there are any individual SITES to back up. If so, move the backups to Amazon S3
if [ "$(find /var/www/vhosts/$BACKUPDOMAIN/s3backups/sites/ -name "*.tar")" ]; then