This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Backup::Model.new(:test_backup, 'test backup') do | |
| database MySQL do |db| | |
| db.name = "my_database" | |
| db.username = "db_user" | |
| db.password = "db_password" | |
| db.host = "localhost" | |
| db.port = 3306 | |
| db.additional_options = ['--quick', '--single-transaction'] | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| backup perform -t test_backup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gem install backup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| backup generate --databases='mysql' --storages='s3' --compressors='gzip' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| every 1.day, :at => '01:15 am' do | |
| command "backup perform -t test_backup -c /path/to/backup/config.rb" | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| env :PATH, '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/ruby/lib/ruby/gems/1.9.1:/usr/local/ruby/bin' | |
| env :SHELL, '/bin/bash' | |
| env :MAILTO, 'your@email.com' | |
| every 1.day, :at => '01:15 am' do | |
| command "backup perform -t test_backup -c /path/to/backup/config.rb" | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace :deploy do | |
| desc "Update the crontab file" | |
| task :update_crontab, :roles => :db do | |
| run "cd #{release_path} && whenever --update-crontab #{application}" | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /usr/local/ruby/lib/ruby/gems/1.9.1/gems/sunspot-1.2.1/solr/etc/jetty.xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Call name="addConnector"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Set name="Host"><SystemProperty name="jetty.host" default="127.0.0.1"/></Set> |
OlderNewer