Skip to content
rails' rake task for backup up and loading data+assets as yaml+files
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib/tasks
README

README

backs up schema, tables, and assets in a db agnositc fashion.  each backup
makes a Rails.env/iso8601 directory full of yaml files for data and plain
files for assest.


  rake backup:dump:all       #=> ls ./backup/production/20101012131827280000/

  or

    rake backup:dump:schema
    rake backup:dump:tables
    rake backup:dump:assets



  rake backup:load:all BACKUP=./backup/production/20101012131827280000/

  or

    rake backup:load:schema BACKUP=./backup/production/20101012131827280000/
    rake backup:load:tables BACKUP=./backup/production/20101012131827280000/
    rake backup:load:tables BACKUP=./backup/production/20101012131827280000/
Something went wrong with that request. Please try again.