Skip to content

Instantly share code, notes, and snippets.

View Reetus's full-sized avatar

Reetus Reetus

  • Australia / Thailand
View GitHub Profile
@Reetus
Reetus / backup.sh
Last active August 29, 2015 14:23 — forked from Silvenga/backup.sh
#!/bin/bash
export PASSPHRASE={{ grains['backup.password'] }}
export AWS_ACCESS_KEY_ID={{ grains['backup.aws_id'] }}
export AWS_SECRET_ACCESS_KEY={{ grains['backup.aws_key'] }}
FOLDER={{ grains['id'] }}
TARGET=s3+http://{{ grains['backup.aws_bucket'] }}/$FOLDER
SOURCE=/
LOGLOC=/var/log/nightly-backup