Skip to content

Instantly share code, notes, and snippets.

@blub0hr
blub0hr / amazons3move-sitesandfull.sh
Created February 4, 2018 21:11 — forked from jaydrogers/amazons3move-sitesandfull.sh
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
#! /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