Sha256: b224a4dc15ce768de6d5c01cc68b53368d14c413ee890c5dea6a4bfdfa53cd6b
Contents?: true
Size: 432 Bytes
Versions: 5
Compression:
Stored size: 432 Bytes
Contents
# frozen_string_literal: true namespace :backup do namespace :database do include Capistrano::Ops::Backup::Helper # Default to :app role rake_roles = fetch(:rake_roles, :app) desc 'create a backup of the server database' task :create do on roles(rake_roles) do puts 'Creating backup...' execute "#{prepare_env} BACKUPS_ENABLED=true bundle exec rake pg:dump" end end end end
Version data entries
5 entries across 5 versions & 1 rubygems