Aura Aura db_dump

db_dump

Returns the database backup as a hash.

@see db_dump_yaml

Example

data = Aura.db_dump
yml_data = YAML::dump(data) # also see db_dump_yaml.
File.open('backup.yml', 'w') { |f| f << yml_data }
puts yml_data.inspect

# Sample output:
# pages:
#     - title: Hello.
#       body: Good day everyone!
#     - title: Cheers!
#       body: What's going on?
# settings:
#     - ...