Permalink
Browse files

* consider RAILS_ROOT.

  • Loading branch information...
1 parent 388f4a9 commit b5f61bab020620c39f6de35b04557afe56af9833 @kou committed Mar 19, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 script/backup
View
@@ -31,5 +31,5 @@ sql_backup_file=${backup_dir}/data-${today}.sql
db_config="ActiveRecord::Base.configurations[RAILS_ENV]"
db_name=`ruby $rails_root/script/runner "print $db_config['database']"`
-sqlite3 $db_name .dump > ${sql_backup_file}
+sqlite3 $rails_root/$db_name .dump > ${sql_backup_file}
gzip -f ${sql_backup_file}

0 comments on commit b5f61ba

Please sign in to comment.