diff options
| -rw-r--r-- | lib/tasks/db.rake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/tasks/db.rake b/lib/tasks/db.rake new file mode 100644 index 0000000..a211a50 --- /dev/null +++ b/lib/tasks/db.rake @@ -0,0 +1,6 @@ +namespace :db do + task :backup do + sh "heroku pgbackups:capture --expire" + sh "heroku pgbackups:url | xargs wget -O tmp/database.tmp" + end +end |
