Sha256: ffe1e90469fd43897e722a1e5bc6aacb73110ead9259e6cb58ee8a44af261292
Contents?: true
Size: 511 Bytes
Versions: 5
Compression:
Stored size: 511 Bytes
Contents
Standup.script :node do def run exec "s3cmd mb #{bucket}" update_cron '@hourly', <<-CMD, :section => name nice -n 10 #{scripts.webapp.db.dump_command scripts.webapp.db_name} | nice -n 10 gzip > dump.gz nice -n 10 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::Settings.webapp.name}-#{node.name}-standup-backup" end def path_prefix "#{bucket}/db/#{scripts.webapp.db_name}" end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
standup-0.6.9 | scripts/db_backup.rb |
standup-0.6.8 | scripts/db_backup.rb |
standup-0.6.7 | scripts/db_backup.rb |
standup-0.6.6 | scripts/db_backup.rb |
standup-0.6.5 | scripts/db_backup.rb |