#!/bin/sh # Transfer backup to S3 # - uses s3cmd binary (install by cloning repo and `python setup.py --install --user`) # - setup as cron job in the cpanel interface (a few minutes or hours after `fullbackup.sh` depending on backup size) # usage: sh ./storebackup.sh backup=$(find ~/ -name "backup-*.tar.gz") /home1/jksdua/bin/s3cmd put $backup $1 && rm $backup