Categories: None [Edit]
rails-backup-migrate
Creates a directory db/backup in the rails app and creates / loads YML files from there.
After a backup, the db/backups directory is archived into a .tgz file and then deleted.
When restoring, the db/backup directory is extracted from the .tgz file.
All of the files in the 'files' directory are also backed up / restored.
The default archive file is "site-backup.tgz" but any other one can be passed as an argument to both db:backup:write
and db:backup:read, for example:
app1$ rake db:backup:write
app1$ cd ../app2
app2$ rake db:backup:read[../app1/site-backup.tgz]
The environment variable 'verbose' or 'VERBOSE' if defined will result in some verbose output.
To add the rake tasks to your Rails app, simply install the gem, and then add the following line to your 'Rakefile':
require 'rails-backup-migrate'
Total
Ranking: 30,496 of 183,127
Downloads: 38,686
Daily
Ranking: 30,170 of 183,106
Downloads: 4
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|
Depends on
Rank | Downloads | Name |
---|---|---|
35 | 596,341,077 | activerecord |
Owners
# | Gravatar | Handle |
---|---|---|
1 | mattconnolly |