You can use the 'dir' parameter, for example:
rake db:data:dump_dir dir="my_dir"
which will put it in 'db / my_dir' and:
rake db:data:load_dir dir='my_dir'
which will load it from 'db / my_dir'.
For dumping, the directory must NOT exist. In both cases, dirs refer to db, absolute paths are NOT allowed
Hope this helps.
source share