Sha256: 2006450fd09d0e5b76688be0c76ffb3d09f7f212292f15129d46f290d8e39497

Contents?: true

Size: 1.16 KB

Versions: 66

Compression:

Stored size: 1.16 KB

Contents

if FileTest.exist?("config/rubber/rubber-percona.yml")
  gsub_file "config/rubber/rubber-percona.yml", /^db_backup_cmd.*$/, \
  "# Replaced by xtrabackup vulcanizer.\n# \\0\n" + \
  "# ** If you'd like to run differential backups, add '-d' to the command line below.\n" + \
  "db_backup_cmd: \"/mnt/db-backup-tools/rubber-xtrabackup.sh -u %user% -p %pass% -t /mnt/db_backups -b %backup_file%\"\n"
  gsub_file "config/rubber/rubber-percona.yml", /^db_restore_cmd.*$/, \
  "# Replaced by xtrabackup vulcanizer.\n# \\0\n" + \
  "db_restore_cmd: \"/mnt/db-backup-tools/rubber-xtrarestore.sh\"\n"
elsif FileTest.exist?("config/rubber/rubber-mysql.yml")
  gsub_file "config/rubber/rubber-mysql.yml", /^db_backup_cmd.*$/, \
  "# Replaced by xtrabackup vulcanizer.\n# \\0\n" + \
  "# ** If you'd like to run differential backups, add '-d' to the command line below.\n" + \
  "db_backup_cmd: \"/mnt/db-backup-tools/rubber-xtrabackup.sh -u %user% -p %pass% -t /mnt/db_backups -b %backup_file%\"\n"
  gsub_file "config/rubber/rubber-mysql.yml", /^db_restore_cmd.*$/, \
  "# Replaced by xtrabackup vulcanizer.\n# \\0\n" + \
  "db_restore_cmd: \"/mnt/db-backup-tools/rubber-xtrarestore.sh\"\n"
end

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
rubber-2.9.0 templates/xtrabackup/templates.rb
rubber-2.8.1 templates/xtrabackup/templates.rb
rubber-2.8.0 templates/xtrabackup/templates.rb
rubber-2.7.5 templates/xtrabackup/templates.rb
rubber-2.7.4 templates/xtrabackup/templates.rb
rubber-2.7.3 templates/xtrabackup/templates.rb
rubber-2.7.2 templates/xtrabackup/templates.rb
rubber-2.7.1 templates/xtrabackup/templates.rb
rubber-2.7.0 templates/xtrabackup/templates.rb
rubber-2.6.5 templates/xtrabackup/templates.rb
rubber-2.6.4 templates/xtrabackup/templates.rb
rubber-2.6.3 templates/xtrabackup/templates.rb
rubber-2.6.2 templates/xtrabackup/templates.rb
rubber-2.6.1 templates/xtrabackup/templates.rb
rubber-2.6.0 templates/xtrabackup/templates.rb
rubber-2.5.5 templates/xtrabackup/templates.rb
rubber-2.5.4 templates/xtrabackup/templates.rb
rubber-2.5.3 templates/xtrabackup/templates.rb
rubber-2.5.2 templates/xtrabackup/templates.rb
rubber-2.5.1 templates/xtrabackup/templates.rb