I have a dev and staging alias setup for drush and they are both working correctly. I included a reference to where I want the dump file placed during a
drush sql-sync using
'path-aliases' => array( '%dump-dir' => '/home/.drush/db_dumps' )
However, when I run the command it runs successfully but it doesn't use my dump directory. Instead it uses /home/user/drush-backups. I tried changing the location of my dump-dir to a location inside of the drupal site folder, but it still doesn't work.
One of the solutions that I found was to include the
--source-dump option (which points to the same location as I have in
%dump-dir) when running
drush sql-sync. It seems like if that's the case, then why even bother adding it in my alias file.
Another solution states to also include a reference to the actual dump file using
%dumpin the path-aliases array. I tried that and it still doesn't work.
Is there a solution to this or is it not suppose to work at all?? Because the example.aliases.drushrc.php file doesn't mention dump-dir at all.
Using: Ubuntu 14.0.4, Drush 8.0.5, Drupal 8 site