Skip to content

test-restore job from mysql-backup/1.25.0

Github source: 5bd00437 or master branch

Properties

cf-mysql-backup

symmetric_key

Symmetric key to decrypt backups

test-restore

test_db

Name of test database to create. Note: do not name this “test”

Default
mysql_backup_test
wait_time_for_backup

How long the errand will wait for the backup to get streamed to destination, in seconds

Default
400

cf_mysql

mysql

admin_password

Database password

Default
password
admin_username

Database username

Default
root
cluster_ips

List of IP address of servers which can generate backups

port

Database port for contacting mysql

Default
3306

service-backup

destination

s3
access_key_id

AWS Access Key to access the blobstore

bucket_name

Bucket to which backups are uploaded

bucket_path

Path in bucket to which backups are uploaded

endpoint_url

S3 endpoint

Default
https://s3.amazonaws.com
secret_access_key

AWS Secret Access Key to access the blobstore

Templates

Templates are rendered and placed onto corresponding instances during the deployment process. This job's templates will be placed into /var/vcap/jobs/test-restore/ directory (learn more).

  • bin/clean-test-db.sql (from clean-test-db.sql.erb)
  • bin/insert-test-data.sql (from insert-test-data.sql.erb)
  • bin/my.cnf (from my.cnf.erb)
  • bin/parse-s3-output.rb (from parse-s3-output.rb)
  • bin/run (from errand.sh.erb)
  • bin/test-data.csv (from test-data.csv)

Packages

Packages are compiled and placed onto corresponding instances during the deployment process. Packages will be placed into /var/vcap/packages/ directory.