Skip to content

Instantly share code, notes, and snippets.

@fivetwentysix
Created November 24, 2010 04:25
Show Gist options
  • Save fivetwentysix/713109 to your computer and use it in GitHub Desktop.
Save fivetwentysix/713109 to your computer and use it in GitHub Desktop.
backup.rb
notifier_settings do
to "john@gmail.com"
from "john@gmail.com"
smtp do
host "mail.google.com.com"
port "587"
username "john"
password "password"
authentication "plain"
domain "localhost.localdomain"
tls true
end
end
# Initialize with:
# rake backup:run trigger='mysql-to-ftp'
backup 'mysql-to-ftp' do
adapter :mysql do
database "schema"
user "root"
password "password"
end
storage :ftp do
ip "server.com"
user "john"
password "password"
path "/home/pma/backups/"
end
keep_backups :all
notify true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment