We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c149e66 commit f8843d0Copy full SHA for f8843d0
lib/tasks/aws_deploy.rake
@@ -134,7 +134,7 @@ namespace :aws_deploy do
134
def aws_rds_create_snapshot
135
db_name = AwsDeploy.configuration.rds_instance_identifier
136
raise "Invalid RDS DB instance name" if (db_name.nil? || db_name == '')
137
- snapshot_name = "#{db_name}_#{Time.now.utc.strftime('%Y-%m-%d-%H-%M-%S-%Z')}"
+ snapshot_name = "#{db_name}-#{Time.now.utc.strftime('%Y%m%d%H%M%S%Z')}"
138
aws_inform "Criando novo snapshot do banco '#{db_name}' com nome '#{snapshot_name}'..."
139
aws_run "rds-create-db-snapshot #{db_name} --db-snapshot-identifier #{snapshot_name}"
140
snapshot_name
0 commit comments