Open nickbreen opened 8 years ago
/backup.sh
and /restore.sh
can just be refactored to use command line arguments as well as environment variables to make them useful in this situation.
Also, rely on S3 versioning rather than timestamping filenames.
It's easier to just use
.s3cfg
rather than fiddling with all the env vars.E.g. this actually works!
There's a
@reboot
job that sets up the user's.s3cfg
file, which all the other jobs use.This allows for far simpler cron job spec's and permits trivial specification of arbitrary jobs and arguments.