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-3.2.2 templates/xtrabackup/templates.rb
rubber-3.2.1 templates/xtrabackup/templates.rb
rubber-3.2.0 templates/xtrabackup/templates.rb
rubber-3.1.0 templates/xtrabackup/templates.rb
rubber-3.0.1 templates/xtrabackup/templates.rb
rubber-3.0.0 templates/xtrabackup/templates.rb
rubber-2.16.0 templates/xtrabackup/templates.rb
rubber-2.15.2 templates/xtrabackup/templates.rb
rubber-2.15.1 templates/xtrabackup/templates.rb
rubber-2.15.0 templates/xtrabackup/templates.rb
rubber-2.14.0 templates/xtrabackup/templates.rb
rubber-2.13.1 templates/xtrabackup/templates.rb
rubber-2.13.0 templates/xtrabackup/templates.rb
rubber-2.12.2 templates/xtrabackup/templates.rb
rubber-2.12.1 templates/xtrabackup/templates.rb
rubber-2.12.0 templates/xtrabackup/templates.rb
rubber-2.11.0 templates/xtrabackup/templates.rb
rubber-2.10.2 templates/xtrabackup/templates.rb
rubber-2.10.1 templates/xtrabackup/templates.rb
rubber-2.10.0 templates/xtrabackup/templates.rb