Sha256: 6bd6763ade013660c60732caafa57c2c56f6cd22cdf77be81606d13e65fe409f
Contents?: true
Size: 462 Bytes
Versions: 1
Compression:
Stored size: 462 Bytes
Contents
Standup.script :node do def run exec "s3cmd mb #{bucket}" update_cron '@hourly', <<-CMD, :section => name #{scripts.webapp.db.dump_command scripts.webapp.db_name, 'webapp', 'webapp'} | gzip > dump.gz s3cmd put dump.gz #{path_prefix}/`date -u +%Y-%m-%d/%H-%M-%S`.gz rm dump.gz CMD end protected def bucket 's3://standup-backup' end def path_prefix "#{bucket}/db/#{scripts.webapp.db_name}" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
standup-0.3.10 | scripts/db_backup.rb |